Horse Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen backdrop switches to [backdrop2 v]\nbroadcast (tree v)\n\nwhen backdrop switches to [backdrop4 v]\nbroadcast (message 2 v)\n\nwhen backdrop switches to [backdrop3 v]\nbroadcast (tree 2 v)\n\nwhen backdrop switches to [backdrop4 v]\nbroadcast (tree 3 v) and wait\n\n@horse\n\nwhen I receive [platform v]\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (-90)\nswitch costume to (costume1 v)\ngo to x: (-178) y: (60)\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (90)\n        change [xvel v] by (-1)\n        set [direction v] to [-5]\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (-90)\n        change [xvel v] by (1)\n        set [direction v] to [5]\n    end\n    set [xvel v] to ((XVel) * (0.9))\n    change x by (XVel)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                end\n            end\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change x by ((XVel) * (-1))\n                    change y by (-5)\n                    if <key (up arrow v) pressed?> then\n                        if <(XVel) > [0]> then\n                            set [xvel v] to [-5]\n                        else\n                            set [xvel v] to [5]\n                        end\n                        set [yvel v] to [10]\n                    else\n                        set [yvel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [yvel v] by (-1)\n    change y by (YVel)\n    if <touching color (#000000)?> then\n        change y by ((YVel) * (-1))\n        set [yvel v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yvel v] to [15]\n        end\n    end\n    change y by (1)\n    if <<(x position) = [205]> or <(x position) > [205]>> then\n        broadcast (message1 v)\n        go to x: (-178) y: (60)\n    end\n    if <touching color (#003fff)?> then\n        go to x: (-178) y: (60)\n    end\nend\n\nwhen [left arrow v] key pressed\nrepeat until <<(costume [number v]) = [1]> and <not <key (left arrow v) pressed?>>>\n    wait (0.1) seconds\n    next costume\nend\n\nwhen [right arrow v] key pressed\nrepeat until <<(costume [number v]) = [1]> and <not <key (right arrow v) pressed?>>>\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\ngo to x: (-178) y: (-126)\nshow\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        go to x: (-178) y: (-126)\n    end\nend\n\ngo to x: (-178) y: (-126)\n\nforever\n    if <key (right arrow v) pressed?> then\n        change [x_vel v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x_vel v] by (-1)\n    end\n    set [x_vel v] to ((0.9) * (x_vel))\n    change x by (x_vel)\n    set [t v] to [0]\n    walls\n    if <not <(t) = [s]>> then\n        add (t) to [bugs v]\n    end\n    change [y_vel v] by (-0.8)\n    change y by (y_vel)\n    if <touching (level v)?> then\n        change y by ((-1) * (y_vel))\n        if <<key (up arrow v) pressed?> and <(y_vel) < [0]>> then\n            set [y_vel v] to [10]\n        else\n            set [y_vel v] to [0]\n        end\n    end\n    broadcast (message1 v)\n    check\nend\n\nwhen [right arrow v] key pressed\nrepeat until <not <key (right arrow v) pressed?>>\n    play sound [Horse Gallop Sound EffectYouTube v] until done\nend\n\nhide\n\nhide\n\n@apple\n\nwhen flag clicked\nset [apples v] to [0]\nset [pixelate v] effect to (25)\nshow\nforever\n    if <touching (horse v)?> then\n        start sound [chomp v]\n        hide\n        change [apples v] by (1)\n    end\nend\n\nwhen I receive [message1 v]\nshow\n\n@Tree\n\nwhen flag clicked\ngo to x: (10) y: (-68)\nhide\n\nwhen I receive [message 2 v]\nhide\n\nwhen I receive [tree v]\nshow\n\nwhen I receive [tree 2 v]\nshow\n\nwhen backdrop switches to [backdrop4 v]\nshow\ngo to x: (-61) y: (-71)\n\nwhen I receive [tree 3 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (10) y: (-68)\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@water\n\nwhen flag clicked\nswitch costume to (water v)\ngo to x: (29) y: (-252)\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (water v)\ngo to x: (29) y: (-252)\nhide\n\nwhen backdrop switches to [backdrop4 v]\nswitch costume to (water2 v)\ngo to x: (107) y: (-252)\nshow\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@Tree2\n\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@horse2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nshow variable [apples v]\n\nhide variable [apples v]\n\nshow\n\ngo to [front v] layer\n\n@Gingerbread House\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Gingerbread House2\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\ngo to [front v] layer\n\n
Note:\nI know horses typically like water, but they also don't climb trees. :) Also, this game is very old, so there will most likely not be any more levels, as I'm not active on Scratch anymore.\nInstructions:\nUse your arrow keys to move left, right or up. Move forward and up to wall jump. Do not touch the water (horses definitely hate water). Collect the apple and touch the right wall to go to the next level.\nCollect as many apples as you can (the levels just repeat)!\nHave fun <3