- Platformer -
@Stage\n\n@player\n\nwhen flag clicked\nshow\nset [y velocity v] to [0]\nset [x velocity v] to [0]\ngo to x: (-214) y: (-90)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n            end\n            if <touching (level v)?> then\n                change y by (1)\n            end\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change x by ((x velocity) * (-1))\n                    change y by (-5)\n                    if <key (up arrow v) pressed?> then\n                        if <(x velocity) > [0]> then\n                            set [x velocity v] to [-5]\n                        else\n                            set [x velocity v] to [5]\n                        end\n                        set [y velocity v] to [10]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching (level v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        broadcast (message 1 v)\n        set [y velocity v] to [0]\n        set [x velocity v] to [0]\n        go to x: (-214) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        go to x: (-214) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Energetic v] until done\nend\n\n@level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\nif <(x position) > [230]> then\n    change [level v] by (1)\n    set [y velocity v] to [0]\n    set [x velocity v] to [0]\n    go to x: (-214) y: (-90)\nend\n\n@message 1\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message 1 v]\nnext costume\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\n@Sprite1\n\n@Sprite2\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n
Use the arrow keys to move. Don't touch the color red. \nAll levels are possible!!!\nPlease love, fave, and follow!!!