Go To School Platformer / #Games
@Stage\n\nwhen flag clicked\nforever\n    play sound [Relaxed Scene - Creator Marketplace v] until done\nend\n\n@Player\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    point in direction (-90)\n    change [speed x v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [speed x v] by (2)\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (ground v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground v)?>>\n        change x by ((Speed X) * (-1))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [speed y v] to [10]\n        if <(Speed X) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [-16]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <touching (ground v)?>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\n\nwhen flag clicked\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\nforever\n    Run Game\n    if <(y position) < [-200]> then\n        death\n    end\nend\n\nwhen I receive [next v]\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\n\ndefine death\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\n\n@Ground\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Next\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (Next v)\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nshow\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\n
Left or Right Arrows to Move. Up or W to jump.