Sonic platformer v1 (Added Lava)
@Stage\n\nwhen flag clicked\nswitch backdrop to (green hill v)\n\nwhen I receive [message1 v]\nswitch backdrop to (green hill v)\n\n@Sonic\n\nwhen flag clicked\ngo to x: (-179) y: (-89)\n\nwhen flag clicked\n\nwhen flag clicked\nwait until <key (space v) pressed?>\nset [y velocity v] to [0]\nforever\n    if <touching (stage v)?> then\n        set [y velocity v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y velocity v] to [9]\n            switch costume to (jump or homing attack5 v)\n        end\n    else\n        change [y velocity v] by (-1)\n    end\n    change y by (y velocity)\n    if <<touching (stage v)?> or <touching (lava v)?>> then\n        Replace\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (6)\n        point in direction (90)\n        switch costume to (run3 v)\n        if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n            switch costume to (jump or homing attack5 v)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-6)\n        point in direction (-90)\n        switch costume to (run3 v)\n        if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n            switch costume to (jump or homing attack5 v)\n        end\n    end\n    if <(Life) = [0]> then\n        stop [this script v]\n    end\nend\n\ndefine Replace\nchange y by (1)\nrepeat until <not <touching (stage v)?>>\n    change y by (1)\nend\nchange y by (-1)\n\nwhen flag clicked\nset size to (60) %\n\nwhen [right arrow v] key pressed\nwait until <not <key (right arrow v) pressed?>>\nswitch costume to (stand v)\nif <(Life) = [0]> then\n    forever\n        stop [this script v]\n    end\nend\n\nwhen [left arrow v] key pressed\nwait until <not <key (left arrow v) pressed?>>\nswitch costume to (stand v)\nif <(Life) = [0]> then\n    forever\n        stop [this script v]\n    end\nend\n\nwhen [up arrow v] key pressed\nwait until <key (space v) pressed?>\nplay sound [Sonic Jump Sound Effect v] until done\nwait until <touching (stage v)?>\nif <(Life) = [0]> then\n    forever\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes  v)?> then\n        go to x: (-234) y: (-93)\n        change [life v] by (-1)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-234) y: (-93)\n        change [life v] by (-1)\n    end\n    if <(Life) = [0]> then\n        forever\n            go to x: (0) y: (0)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (portal v)?> and <(backdrop [number v]) = [2]>> then\n        go to x: (-234) y: (-65)\n        broadcast (message2 v)\n    end\nend\n\nwhen flag clicked\nset size to (25) %\n\nwhen flag clicked\nset [life v] to [5]\n\nwhen flag clicked\nforever\n    if <(Life) = [0]> then\n        forever\n            set size to (30) %\n            go to x: (0) y: (0)\n            go to [front v] layer\n            forever\n                stop all sounds\n                play sound [Sonic 1 Music_ Game Over v] until done\n            end\n        end\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        start sound [Sonic The Hedgehog OST - Green Hill Zone \(1\) v]\n    end\nend\n\nwhen flag clicked\nwait until <(Life) = [0]>\nif <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <key (right arrow v) pressed?>>> then\n    forever\n        switch costume to (sonic death v)\n        set [life v] to [0]\n        set [y velocity v] to [0]\n        hide variable [life v]\n        hide variable [level# v]\n    end\nend\n\nwhen flag clicked\nwait until <key (space v) pressed?>\nshow variable [life v]\nshow variable [level# v]\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        broadcast (message2 v)\n        go to x: (-216) y: (-89)\n    end\n    if <(Life) = [0]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level#) = [8]> then\n        set size to (0) %\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\ngo to x: (-182) y: (-63)\n\nwhen flag clicked\nset drag mode [not draggable v]\n\nwhen flag clicked\nswitch costume to (stand v)\npoint in direction (90)\n\n@Stage\n\nwhen flag clicked\nswitch costume to (level1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [message2 v]\nnext costume\nchange [level# v] by (1)\nchange [score v] by (100)\nif <(level#) = [8]> then\n    stop all sounds\n    forever\n        play sound [Sonic victory theme v] until done\n    end\nend\n\nwhen flag clicked\nset [level# v] to [1]\n\nwhen flag clicked\nset [score v] to [0]\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@Portal\n\nwhen flag clicked\ngo to x: (199) y: (-46)\nforever\n    change [color v] effect by (5)\nend\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\nset size to (15) %\n\nwhen flag clicked\nswitch costume to (portal v)\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@Life icon\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@images\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@backup\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@Spikes \n\nwhen I receive [message2 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (spikes v)\n\nwhen flag clicked\nset drag mode [not draggable v]\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Start\n\nwhen flag clicked\nrepeat until <key (space v) pressed?>\n    repeat (58)\n        next costume\n        wait (0.015) seconds\n    end\nend\n\nwhen flag clicked\nswitch costume to (start v)\n\nwhen flag clicked\nstart sound [Sonic The Hedgehog Opening Title Screen Intro Sega Genesis v]\nif <key (space v) pressed?> then\n    stop [this script v]\nend\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nshow\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen [space v] key pressed\nstop all sounds\n\n@Sprite1\n\nwhen flag clicked\nshow\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\ngo to x: (-15) y: (-127)\n\nwhen flag clicked\ngo to [front v] layer\n\n
The left arrow goes left\nThe right arrow goes right \nthe up arrow is going up\ndon't touch the spikes and you have five lives\nspace to start     \n\n2 months ago I didn't think I would get 100 views let alone 2,500 you guys are awesome thank you