WORLDS 4 - A multiplayer platformer
@Stage\n\n@level\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (16)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\nplay sound [Alan Walker - Play \(Lyrics\) ft v] until done\n\n@Player2\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\ndefine go\nswitch costume to (hitbox v)\nchange [my variable v] by (-1)\nchange y by (my variable)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (my variable) ) / (my variable)) * (-1))\n    end\n    set [my variable v] to (<<key (up arrow v) pressed?> and <(([abs v] of (my variable) ) / (my variable)) = [-1]>> * (12))\nend\nchange x by ((<key (right arrow v) pressed?> * (6)) + (<key (left arrow v) pressed?> * (-6)))\nset [slope v] to [0]\nrepeat until <<(slope) = [-8]> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((<key (right arrow v) pressed?> * (-6)) + (<key (left arrow v) pressed?> * (6)))\n    end\nend\nchange [sx v] by (x position)\nchange [sy v] by (y position)\ngo to x: (0) y: (0)\nif <<(sy) < [-500]> or <touching (level2 v)?>> then\n    set [my variable v] to [0]\n    set [sx v] to [0]\n    set [sy v] to [0]\nend\nswitch costume to (state)\n\nwhen flag clicked\nset [sx v] to [0]\nset [sy v] to [0]\nset [my variable v] to [0]\ngo to x: (0) y: (100)\nforever\n    go\nend\n\nwhen flag clicked\nset [state v] to [3]\nforever\n    if <not <(my variable) = [0]>> then\n        if <(my variable) > [0]> then\n            set [state v] to [11]\n        else\n            set [state v] to [12]\n        end\n    else\n        if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n            change [state v] by (1)\n            if <(state) > [10]> then\n                set [state v] to [3]\n            end\n            wait (.05) seconds\n        else\n            set [state v] to [2]\n        end\n    end\nend\n\nwhen flag clicked\nforever\nend\n\nif <touching (level2 v)?> then\n    go to x: (0) y: (100)\nend\n\nwhen flag clicked\nforever\n    if <touching (level4 v)?> then\n        change [sy v] by (20)\n    end\nend\n\n@Border\n\nwhen I receive [engine_start v]\n\nwhen flag clicked\nwait (0.01) seconds\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\ngo to x: (0) y: (0)\n\nhide\n\ngo [backward v] (1) layers\n\n@level2\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (16)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\n\n@level3\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nforever\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nrepeat (2)\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\n\n@level4\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (16)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\n\nplay sound [Alan Walker - Play \(Lyrics\) ft v] until done\n\n@level5\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (16)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\n\nwhen flag clicked\nset [ghost v] effect to (50)\n\n@level6\n\nswitch costume to (1 v)\n\nwhen [f v] key pressed\n\ngo to x: (-240) y: (-86)\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (16)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\nwhen flag clicked\n\n@thumb\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
A decently hard platformer where you fly around to different planets to play new levels.\n\n-Wasd or arrow keys to move.\n-J key to skip a level\n-L key to turn off leaves (reduces lag)\nPress space to leave/go to planets\n\nI probably spent more time than I should have creating a engine that would add decoration automatically so that I didn't have to draw decor for every level.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThere is a secret code at the end of all the levels that lets you mess with everything.....