platformer
@Stage\n\n@player\n\nwhen flag clicked\ngo to x: (-119) y: (-152)\nforever\n    change [y velocity v] by (-1)\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) * (0.87))\n    change x by (x velocity)\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (1)\n    end\n    if <touching (stage v)?> then\n        change y by (-6)\n        change x by ((x velocity) * (-1))\n        set [x velocity v] to [0]\n    end\n    change y by (y velocity)\n    if <touching (stage v)?> then\n        change y by ((y velocity) - ((y velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    if <touching (stage 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 <<key (up arrow v) pressed?> and <touching (stage v)?>> then\n        set [y velocity v] to [13]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (wall ig idk v)?> then\n        broadcast (next v)\n        go to x: (-119) y: (-152)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes/lava v)?> then\n        go to x: (-119) y: (-152)\n        create clone of (_myself_ v)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if < (costume [number v]) contains [2]?> then\n        wait (0.6) seconds\n        switch costume to (costume1 v)\n    end\nend\n\n@stage\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\n@wall ig idk\n\nwhen flag clicked\ngo to [back v] layer\n\n@spikes/lava\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume2 v)\n\nwhen I receive [next v]\nnext costume\n\n@guide\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\nbroadcast (open v)\n\nwhen I receive [close v]\nswitch costume to (costume1 v)\n\n@close\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (close v)\nhide\n\nwhen I receive [open v]\nshow\n\n@thumbnail\n\nwhen flag clicked\nhide\n\n
-> instructions are all written in the project. just click 'guide'\n\n-> 90% code from a yt tutorial :D\n-> NOT mobile friendly\n\nevery stage is possible!