Way to School (Scratch platformer)
@Stage\n\nwhen flag clicked\nswitch backdrop to (bedroom  v)\nwait (5.99) seconds\nbroadcast (play v)\nswitch backdrop to (background v)\n\nwhen I receive [stop v]\nswitch backdrop to (school v)\nwait (9) seconds\nswitch backdrop to (end v) and wait\n\nwhen I receive [die v]\nswitch backdrop to (die v)\n\n@Player \n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\ngo to x: (0) y: (10)\nstart sound [Sunshine v]\nshow\nforever\n    if <touching (platform v)?> then\n        if <key (up arrow v) pressed?> then\n            repeat (12)\n                switch costume to (jump v)\n                change y by (13)\n            end\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        next costume\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        next costume\n    end\n    if <(costume [number v]) = [19]> then\n        switch costume to (run_r1 v)\n    end\n    repeat until <touching (platform v)?>\n        change y by (-10)\n        switch costume to (fall v)\n    end\n    if <not <key (any v) pressed?>> then\n        switch costume to (stand v)\n    end\n    if <<touching color (#1fa700)?> or <<touching color (#157300)?> or <<touching color (#744f00)?> or <touching color (#5c3f00)?>>>> then\n        change y by (10)\n    end\n    if <touching color (#e6a700)?> then\n        broadcast (next v)\n    end\n    if <touching color (#eaeaea)?> then\n        broadcast (stop v)\n    end\n    if <<touching color (#9b9b9b)?> or <touching color (#4e4e4e)?>> then\n        broadcast (Die v)\n        hide\n    end\nend\n\nwhen I receive [stop v]\nstop all sounds\nhide\n\n@Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (1 v)\ngo to x: (230) y: (-150)\nshow\nforever\n    if <<key (right arrow v) pressed?> or <key (a v) pressed?>> then\n        change x by (-10)\n    end\n    if <<key (left arrow v) pressed?> or <key (d v) pressed?>> then\n        change x by (10)\n    end\nend\n\nwhen I receive [next v]\ngo to x: (230) y: (-150)\nnext costume\n\nwhen I receive [stop v]\nstop all sounds\nhide\n\nwhen I receive [die v]\nstop all sounds\nhide\n\n
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n__ How To Play __\n• Don't touch spikes\n• Arrow Keys Move