The City || A Platformer #Games #Art

Instructions: The City || A Platformer\n\n*This is a very easy platformer I just made it for fun :)*\n\n-Use Arrow Keys To Move \n\n-Get To The End\n\n\n\n

@Stage\n\n@Intro\n\ndefine Shake X (x) Y (y) Size (s) Repeat (#) direction: (direction) speed: (speed)\nshow\nset size to (s) %\nrepeat (#)\n    change size by (((100) - (size)) / (8))\n    turn right (((direction) - (direction)) / (speed)) degrees\n    set [dir v] to (direction)\n    go to x: ((([sin v] of ((timer) * (1000)) ) * (((100) - (size)) / (2))) + (x)) y: ((([cos v] of ((timer) * (800)) ) * (((100) - (size)) / (2))) + (y))\n    set [x v] to (x position)\n    set [y v] to (y position)\nend\n\ndefine Smooth Glide and stuff | x: (x) y: (y) direction: (direction) speed: (speed) size: (size) ghost: (ghost)\nrepeat until <<(round (x position)) = (round (x))> and <<(round (y position)) = (round (y))> and <<(round (size)) = (round (size))> and <(round (direction)) = (round (direction))>>>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    change size by (((size) - (size)) / (speed))\n    change [ghost v] effect by (ghost)\n    turn right (((direction) - (direction)) / (speed)) degrees\nend\n\nwhen flag clicked\nset volume to (100) %\nset [color v] effect to (pick random (1) to (1))\nhide\nstart sound [Slooby & God's Warrior - Believe In Love2 v]\nset [clone id v] to [0]\nrepeat (20)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\nParticles\nwait (15.6) seconds\nbroadcast (End Intro v)\n\nrepeat until <<(round (x position)) = (round (x))> and <<(round (y position)) = (round (y))> and <<(round (size)) = (round (size))> and <(round (direction)) = (round (direction))>>>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    change size by (((size) - (size)) / (speed))\n    change [ghost v] effect by (ghost)\n    turn right (((direction) - (direction)) / (speed)) degrees\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (hack v)\n    set size to (10000) %\n    switch costume to (name v)\n    point in direction (-90)\n    show\n    repeat until <<(round (size)) = (round (100))> and <(round (direction)) = (round (90))>>\n        switch costume to (hack v)\n        change size by (((100) - (size)) / (14))\n        switch costume to (name v)\n        turn right (((90) - (direction)) / (14)) degrees\n    end\n    Shake X [0] Y [50] Size [70] Repeat [15] direction: [-90] speed: [4]\n    go to [front v] layer\n    Shake X [0] Y [-50] Size [70] Repeat [15] direction: [90] speed: [3]\n    go to [front v] layer\n    Shake X [0] Y [0] Size [150] Repeat [20] direction: [-90] speed: [4]\n    go to [front v] layer\n    Shake X [0] Y [0] Size [150] Repeat [20] direction: [90] speed: [4]\n    go to [front v] layer\n    point in direction (90)\n    set [var1 v] to [1]\n    repeat (20)\n        go to [front v] layer\n        turn right (var1) degrees\n        set [dir v] to (direction)\n        go to [front v] layer\n        change size by (((200) - (size)) / (5))\n        change [var1 v] by ((var1) / (5))\n    end\n    set [var1 v] to [1]\n    repeat (35)\n        turn right (((90) - (direction)) / (7.5)) degrees\n        set [dir v] to (direction)\n        change size by (((100) - (size)) / (7.5))\n    end\n    Shake X [50] Y [0] Size [200] Repeat [15] direction: [90] speed: [4]\n    Shake X [-50] Y [0] Size [200] Repeat [15] direction: [90] speed: [4]\n    point in direction (90)\n    set [var1 v] to [1]\n    set [move v] to [10]\n    repeat (20)\n        change x by (move)\n        set [x v] to (x position)\n        go to [front v] layer\n        turn right (var1) degrees\n        set [dir v] to (direction)\n        go to [front v] layer\n        change [var1 v] by ((var1) / (5))\n    end\n    repeat (11)\n        turn right (((90) - (direction)) / (7.5)) degrees\n        change x by (move)\n        set [x v] to (x position)\n        change [move v] by (-5)\n        set [dir v] to (direction)\n    end\n    repeat until <[0] < (x position)>\n        turn right (((90) - (direction)) / (5)) degrees\n        change x by (move)\n        set [x v] to (x position)\n        change [move v] by (10)\n        set [dir v] to (direction)\n    end\n    Shake X [0] Y [0] Size [100] Repeat [10] direction: [90] speed: [4]\n    go to x: (0) y: (0)\n    set [x v] to [0]\n    set [y v] to [0]\n    repeat (2)\n        Shake X [0] Y [0] Size [110] Repeat [15] direction: [90] speed: [4]\n    end\n    set [move v] to [5]\n    repeat (3)\n        change y by (move)\n        set [y v] to (y position)\n        change [move v] by (5)\n    end\n    repeat (11)\n        change y by (move)\n        set [y v] to (y position)\n        change [move v] by (-5)\n    end\n    repeat (13)\n        change y by (move)\n        set [y v] to (y position)\n        change [move v] by (6.15)\n    end\n    wait until <(timer) > [14]>\n    repeat until <<(round (x position)) = (round (0))> and <<(round (y position)) = (round (-300))> and <(round (direction)) = (round (120))>>>\n        change x by (((0) - (x position)) / (30))\n        change y by (((-240) - (y position)) / (30))\n        switch costume to (name v)\n        turn right (((120) - (direction)) / (30)) degrees\n        change [ghost v] effect by (1.3)\n    end\n    delete this clone\nend\nif <(Clone ID) = [2]> then\n    go to x: (0) y: (0)\n    switch costume to (circle v)\n    show\n    go to [back v] layer\n    point in direction (-90)\n    repeat until <(round (size)) = (round (3000))>\n        switch costume to (hack v)\n        change size by (((3000) - (size)) / (28))\n        turn right (((90) - (direction)) / (25)) degrees\n        switch costume to (circle v)\n    end\n    wait until <(timer) > [13.5]>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(Clone ID) = [3]> then\n    wait (6.8) seconds\n    go to x: (0) y: (0)\n    switch costume to (circle thing v)\n    set size to (100) %\n    switch costume to (hack v)\n    set [ghost v] effect to (100)\n    show\n    go to [back v] layer\n    point in direction (-90)\n    set [var2 v] to [1]\n    repeat (20)\n        change [ghost v] effect by (-10)\n        go to [back v] layer\n        go [forward v] (5) layers\n        switch costume to (hack v)\n        turn right (var2) degrees\n        switch costume to (circle thing v)\n        change [var2 v] by ((var2) / (5))\n    end\n    set [var2 v] to [1]\n    repeat until <(costume [name v]) = [last one]>\n        turn right (((-90) - (direction)) / (8)) degrees\n        change size by (((200) - (size)) / (8))\n        next costume\n    end\n    delete this clone\nend\nif <(Clone ID) = [4]> then\n    wait (4.5) seconds\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (grid1 v)\n    set size to (100) %\n    set [ghost v] effect to (0)\n    show\n    go to [back v] layer\n    go [forward v] (1) layers\n    wait until <(timer) > [13.5]>\n    delete this clone\nend\nif <(Clone ID) = [5]> then\n    Spawn Chevrons | repeat: [11]\nend\nif <(Clone ID) = [6]> then\n    Spawn Chevron2 | repeat: [11]\nend\nif <(Clone ID) = [Chevron]> then\n    set [pixelate v] effect to (0)\n    change [color v] effect by (0)\n    wait (5.1) seconds\n    go to x: (0) y: (0)\n    switch costume to (chevron v)\n    set size to (-100) %\n    set [ghost v] effect to (100)\n    set [val v] to [5]\n    show\n    go to [back v] layer\n    go [forward v] (10) layers\n    repeat (10)\n        change [color v] effect by (0)\n        set [pixelate v] effect to (0)\n        change [ghost v] effect by (-10)\n        change size by (val)\n        change [val v] by (((20) - (val)) / (6))\n    end\n    repeat until <(size) > [650]>\n        switch costume to (hack v)\n        change size by (val)\n        change [val v] by (((20) - (val)) / (6))\n        change [color v] effect by (0)\n        switch costume to (chevron v)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Chevron2]> then\n    change [color v] effect by (0)\n    set [pixelate v] effect to (0)\n    wait (5.4) seconds\n    go to x: (0) y: (0)\n    switch costume to (chevron v)\n    set size to (-100) %\n    set [ghost v] effect to (100)\n    set [val v] to [5]\n    show\n    go to [back v] layer\n    go [forward v] (1) layers\n    repeat (10)\n        change [ghost v] effect by (-10)\n        set [pixelate v] effect to (0)\n        change size by (val)\n        change [color v] effect by (0)\n        change [val v] by (((20) - (val)) / (5))\n    end\n    repeat until <(size) > [650]>\n        switch costume to (hack v)\n        change size by (val)\n        change [val v] by (((20) - (val)) / (5))\n        change [color v] effect by (0)\n        switch costume to (chevron v)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Particle]> then\n    wait until <(timer) > [5.4]>\n    set [move particles v] to [3]\n    wait (0) seconds\n    set size to (pick random (20) to (50)) %\n    show\n    switch costume to (pick random (16) to (17))\n    go to (random position v)\n    point in direction (pick random (0) to (360))\n    set [ghost v] effect to (pick random (0) to (70))\n    go to [back v] layer\n    repeat until <(timer) > [13]>\n        go to [back v] layer\n        go [forward v] (10) layers\n        move (move particles) steps\n        if on edge, bounce\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Spawn Chevrons | repeat: (#)\nrepeat (#)\n    set [clone id v] to [Chevron]\n    create clone of (_myself_ v)\n    wait (0.6) seconds\nend\n\ndefine Spawn Chevron2 | repeat: (#)\nrepeat (#)\n    set [clone id v] to [Chevron2]\n    create clone of (_myself_ v)\n    wait (0.6) seconds\nend\n\nwhen I start as a clone\nif <<(Clone ID) = [Chevron2]> or <(Clone ID) = [Chevron]>> then\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        point in direction (dir)\n        go to x: (x) y: (y)\n    end\nend\n\nwhen I start as a clone\nwait until <(timer) > [6.7]>\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [color v] effect by (5)\nend\nrepeat (20)\n    change [pixelate v] effect by (-5)\n    change [color v] effect by (-5)\nend\n\nwhen flag clicked\nwait until <(timer) > [5.4]>\nrepeat (10)\n    repeat (10)\n        change [move particles v] by ((4) - ((move particles) / (4)))\n    end\n    set [move particles v] to [4]\n    wait (0.2) seconds\nend\n\ndefine Particles\nrepeat (20)\n    set [clone id v] to [Particle]\n    create clone of (_myself_ v)\nend\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [end intro v]\ngo to [front v] layer\nshow\ngo to x: (-216) y: (0)\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    set [x v] to (x position)\n    set [y v] to (y position)\n    switch costume to (player v)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (right v)\n        create clone of (_myself_ v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (left v)\n        create clone of (_myself_ v)\n    end\n    set [xv v] to ((xv) * (.9))\n    change x by (xv)\n    if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n        change y by (1)\n        if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n            change y by (1)\n            if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n                change y by (1)\n                if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n                    change y by (1)\n                    if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n                        change y by (1)\n                    end\n                    change x by ((xv) * (-1))\n                    change y by (-5)\n                    if <key (up arrow v) pressed?> then\n                        if <(xv) > [0]> then\n                            set [xv v] to [-10]\n                        else\n                            set [xv v] to [10]\n                        end\n                        set [yv v] to [15]\n                    else\n                        set [xv v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by ((yv) * (1))\n    if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#28ab00)?> or <touching color (#764700)?>> then\n        if <key (up arrow v) pressed?> then\n            change [yv v] by (12)\n        end\n    end\n    change y by (1)\n    if <(x position) > [235]> then\n        go to x: (-216) y: (0)\n        change [level v] by (1)\n        wait (0.1) seconds\n    end\n    if  then\n        broadcast (Death v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-216) y: (0)\n    end\n    if <<touching (saw4 v)?> or <<touching color (#ff0000)?> or <touching color (#a70000)?>>> then\n        broadcast (Death v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-216) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-7)\n    change [ghost v] effect by (10)\n    change [color v] effect by (50)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching color (#f9ff00)?> then\n        change [yv v] by (25)\n    end\nend\n\nwhen I receive [end intro v]\nset volume to (100) %\nplay sound [ song v] until done\n\n@level\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\n\nwhen I receive [end intro v]\nforever\n    switch costume to (level)\nend\n\nwhen I receive [end intro v]\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [skip v]\n\n@Love fave\n\nwhen flag clicked\ngo to [front v] layer\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (15) to (20)) seconds\n        switch costume to (follow! v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Night-city-background-with-many-building-Graphics-3832769-1\n\nwhen I receive [end intro v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n