Color Platformer

Instructions: Press Space to Start!!\n\n- Arrow Keys to Move\n- Goal\n  * Touch light blue heart\n- Yellow: Restart\n- Purple: Accelerated Downward\n- Orange: Accelerated Upward\n- Mint: Platform\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (levels v)\nforever\n    if <touching color (#ccffff)?> then\n        next backdrop\n    end\nend\n\nwhen [space v] key pressed\nswitch backdrop to (level 1 v)\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <touching color (#ffe9cc)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffffcc)?> then\n        go to x: (-159) y: (-99)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ccffff)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-164) y: (-99)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#cc99ff)?> then\n        set [y v] to [-30]\n    end\nend\n\nwhen [space v] key pressed\nset [ghost v] effect to (0)\npoint in direction (90)\nswitch backdrop to (backdrop3 v)\nswitch costume to (costume1 v)\ngo to x: (-159) y: (-99)\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nforever\n    change [y v] by (-0.5)\n    if <touching color (#ffffff)?> then\n        change y by (1)\n        if <touching color (#ccffdd)?> then\n            change y by (1)\n            if <touching color (#ccffdd)?> then\n                change y by (1)\n                if <touching color (#ccffdd)?> then\n                    change y by (1)\n                    if <touching color (#ccffdd)?> then\n                        change y by (-6)\n                        if <key (up arrow v) pressed?> then\n                            set [y v] to [10]\n                            change x by ((x) * (-1))\n                            if <(x) > [0]> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                        else\n                            change x by ((x) * (-1))\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#ccffdd)?> then\n        change y by (1)\n        if <touching color (#ccffdd)?> then\n            change y by (1)\n        end\n    end\n    change y by (y)\n    if <touching color (#ccffdd)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#ccffdd)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\n@Sprite2\n\n@Sprite3\n\nwhen backdrop switches to [level 3 v]\nshow\nforever\n    glide (1) secs to x: (78) y: (-38)\n    glide (1) secs to x: (77) y: (38)\nend\n\nwhen backdrop switches to [level 4 v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 6 v]\nshow\nforever\n    glide (1) secs to x: (-33) y: (28)\n    glide (1) secs to x: (129) y: (28)\nend\n\nwhen backdrop switches to [level 7 v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nhide\n\n