Ball platformer game
@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to ( start screen v)\n\nwhen flag clicked\nswitch backdrop to (scratch profile \(1\) v)\nwait (4) seconds\nswitch backdrop to ( start screen v) and wait\n\nwhen I receive [start v]\nforever\n    start sound [dance head nod v]\n    wait (5.64) seconds\nend\n\n@ ball\n\nwhen flag clicked\nshow\nset [yvelocity v] to [0]\ngo to x: (-214) y: (-157)\nforever\n    change y by (yvelocity)\n    if <<key (space v) pressed?> and <(yvelocity) < [0]>> then\n        if <touching color (#ccffff)?> then\n            set [yvelocity v] to [12]\n            change y by (12)\n        end\n    end\n    if <touching color (#ccffff)?> then\n        if <(yvelocity) < [0]> then\n            set [yvelocity v] to [0]\n        end\n        if <(yvelocity) > [0]> then\n            change y by ((0) - (yvelocity))\n            set [yvelocity v] to [-5]\n        end\n    end\n    repeat until <not <touching color (#ccffff)?>>\n        change y by (1)\n    end\n    change [yvelocity v] by (-0.5)\nend\n\nwhen flag clicked\nset [level v] to [0]\nset [lives v] to [4]\nset [xvelocity v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        set [xvelocity v] to [15]\n    end\n    if <key (left arrow v) pressed?> then\n        set [xvelocity v] to [-15]\n    end\n    set [xvelocity v] to ((xvelocity) / (2))\n    change x by (xvelocity)\n    if <touching color (#ccffff)?> then\n        change x by ((0) - (xvelocity))\n        set [xvelocity v] to [0]\n    end\n    if <touching color (#cccc00)?> then\n        go to x: (-214) y: (-197)\n        change [level v] by (1)\n        broadcast (next level v)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-214) y: (-197)\n        change [lives v] by (-1)\n    end\n    if <touching color (#00ff55)?> then\n        start sound [boing v]\n        set [yvelocity v] to [15]\n        change y by (15)\n    end\n    if <touching color (#0033cc)?> then\n        go to x: (50) y: (120)\n    end\n    if <(Lives) < [1]> then\n        switch backdrop to ( game over screen v)\n        broadcast (game over v)\n        set [level v] to [0]\n        stop [all v]\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nhide variable [level v]\nhide variable [lives v]\nwait (6) seconds\nshow variable [level v]\nshow variable [lives v]\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nScan user\n\ndefine Scan user\n\nwhen I receive [start v]\nhide\n\nwhen I receive [end v]\nshow\n\nwhen I receive [end v]\nshow variable [level v]\nshow variable [lives v]\n\nwhen I receive [start v]\nhide variable [level v]\nhide variable [lives v]\n\n@Sprite2\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        show\n        turn right (4) degrees\n    else\n        hide\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [game over v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nforever\n    glide (2) secs to x: (85) y: (100)\n    glide (2) secs to x: (85) y: (-62)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        show\n    else\n        hide\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [game over v]\nhide\n\n@scratch profile (1)2\n\nwhen flag clicked\nbroadcast (start v)\nset [ghost v] effect to (0)\nset size to (100) %\ngo to x: (0) y: (0)\nset [sv v] to [20]\nset [sv v] to (((sv) * (0.7)) + (((105) - (size)) * (0.2)))\nchange size by (sv)\nshow\nrepeat (20)\n    set [sv v] to (((sv) * (0.7)) + (((100) - (size)) * (0.2)))\n    change size by (sv)\nend\nset [sv v] to [20]\nset [sv v] to (((sv) * (0.7)) + (((105) - (size)) * (0.2)))\nchange size by (sv)\nrepeat (20)\n    set [sv v] to (((sv) * (0.7)) + (((100) - (size)) * (0.2)))\n    change size by (sv)\n    change size by (-10)\nend\nset [sv v] to [20]\nset [sv v] to (((sv) * (0.7)) + (((105) - (size)) * (0.2)))\nchange size by (sv)\nrepeat (20)\n    set [sv v] to (((sv) * (0.7)) + (((100) - (size)) * (0.2)))\n    change size by (sv)\n    change size by (-50)\nend\nrepeat (20)\n    set [sv v] to (((sv) * (0.7)) + (((100) - (size)) * (0.2)))\n    change size by (sv)\n    change [ghost v] effect by (5)\nend\nhide\nstop all sounds\nbroadcast (end v)\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@ thumbnail\n\nwhen flag clicked\nshow\nhide\n\n
Space,left and right keys for controls\n-------------------------------------------------------------------------\nDon't forget to Love, Favorite and Follow me! - @ldsmithy See ya!\n-------------------------------------------------------------------------\nI will try and reply to everyone's comments if their nice\n-------------------------------------------------------------------------\nDon't forget to comment your suggestions!\n-------------------------------------------------------------------------\nGOAL: To be featured! - Please that's all I want    (:\n