NEON scrolling Platformer 2 #neon
@Stage\n\nwhen flag clicked\nforever\n    play sound [Dex Arson - Machina v] until done\n    wait (0.3) seconds\nend\n\n@Player\n\nwhen flag clicked\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [level v] to [1]\nbroadcast (Restart v)\n\nwhen I receive [restart v]\nReset Player\nwait (0) seconds\nforever\n    Player Movement\nend\n\ndefine Gravity\nchange [speed y v] by (gravity)\nchange y by (speed y)\nif <touching color (#41adff)?> then\n    Of the Ground Y\n    if <(gravity) = [-1.3]> then\n        if <<key (up arrow v) pressed?> and <(jump) = [1]>> then\n            set [jump v] to [0]\n            set [speed y v] to [15]\n        end\n    else\n        if <<key (down arrow v) pressed?> and <(jump) = [1]>> then\n            set [jump v] to [0]\n            set [speed y v] to [-15]\n        end\n    end\nend\n\ndefine Move\nif <key (right arrow v) pressed?> then\n    change [speed x v] by (2)\nend\nif <key (left arrow v) pressed?> then\n    change [speed x v] by (-2)\nend\nset [speed x v] to ((speed x) * (0.8))\nchange x by (speed x)\nif <touching color (#41adff)?> then\n    Of the Ground X\nend\n\ndefine Scrolling\nset [scroll x v] to (round ((x position) / (5)))\nset [scroll y v] to (round ((y position) / (5)))\ngo to x: ((x position) - (SCROLL X)) y: ((y position) - (SCROLL Y))\nif <(SCROLL Y) < [-20]> then\n    broadcast (Game Over v)\nend\nif <(SCROLL Y) > [30]> then\n    broadcast (Game Over v)\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nswitch costume to (circle v)\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nbroadcast (Restart v)\nstop [this script v]\n\ndefine Touch\nif <touching color (#ff3b3b)?> then\n    broadcast (Game Over v)\n    stop [this script v]\nend\nif <touching color (#ffe900)?> then\n    if <(gravity) = [-1.3]> then\n        set [speed y v] to [20]\n    else\n        set [speed y v] to [-20]\n    end\nend\nif <touching color (#37ff00)?> then\n    stop [other scripts in sprite v]\n    change [level v] by (1)\n    broadcast (Restart v)\n    stop [this script v]\nend\n\nwhen I receive [restart v]\nwait (0) seconds\nforever\n    wait until <touching color (#ce19ff)?>\n    if <(gravity) = [-1.3]> then\n        set [gravity v] to [1.3]\n    else\n        set [gravity v] to [-1.3]\n    end\n    wait until <not <touching color (#ce19ff)?>>\nend\n\ndefine Of the Ground Y\nif <(speed y) < [1]> then\n    repeat until <not <touching color (#41adff)?>>\n        change y by (1)\n    end\n    if <(gravity) = [-1.3]> then\n        set [jump v] to [1]\n    end\nelse\n    repeat until <not <touching color (#41adff)?>>\n        change y by (-1)\n    end\n    if <(gravity) = [1.3]> then\n        set [jump v] to [1]\n    end\nend\nset [speed y v] to [0]\n\ndefine Of the Ground X\nif <(speed x) < [1]> then\n    repeat until <not <touching color (#41adff)?>>\n        change x by (1)\n    end\nelse\n    repeat until <not <touching color (#41adff)?>>\n        change x by (-1)\n    end\nend\nset [speed x v] to [0]\n\ndefine Reset Player\nset [jump v] to [0]\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [gravity v] to [-1.3]\ngo to x: (-198) y: (-53)\ngo to [front v] layer\n\ndefine Player Movement\nswitch costume to (hitbox v)\nGravity\nMove\nTouch\nScrolling\nswitch costume to (circle v)\n\n@Level\n\ndefine Glow\nerase all\nset [ghost v] effect to (98)\nrepeat (16)\n    turn right (22.5) degrees\n    repeat (10)\n        move (1) steps\n        stamp\n    end\n    move (-10) steps\nend\nclear graphic effects\npoint in direction (90)\n\nwhen I receive [restart v]\ngo to x: (0) y: (0)\nswitch costume to (level.1 v)\nforever\n    go to x: ((x position) - (SCROLL X)) y: ((y position) - (SCROLL Y))\n    switch costume to (join [level.] (LEVEL))\n    Glow\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n
---NEON scrolling Platformer 2--- \n\n|https://turbowarp.org/934112681|- TurboWarp\n\nThe character is controlled by arrows. The blue platforms are the earth. The red triangles are spikes. The yellow stripe is a trampoline. The green oval is the transition to the next level. The purple arrows are a change of gravity.