Illusion ~ A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Alan Walker - Faded v] until done\nend\n\nwhen I receive [new level  v]\nnext backdrop\n\nwhen backdrop switches to [backdrop15 v]\nbroadcast (End v)\n\n@Levels\n\nwhen I receive [new level  v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nforever\n    switch costume to (costume15 v)\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-229) y: (-73)\ngo to x: (-229) y: (-80)\n\nwhen flag clicked\nshow\nset [yv v] to [0]\ngo to x: (-229) y: (-73)\nset [xv v] to [0]\nforever\n    if <touching color (#ff1d1d)?> then\n        set [yv v] to [0]\n        go to x: (-177) y: (94)\n        set [xv v] to [0]\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching color (#050052)?> then\n        change y by (1)\n        if <touching color (#050052)?> then\n            change y by (1)\n            if <touching color (#050052)?> then\n                change y by (1)\n                if <touching color (#050052)?> then\n                    change y by (1)\n                    if <touching color (#050052)?> then\n                        change y by (1)\n                        if <touching color (#050052)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [9]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (yv)\n    if <touching color (#050052)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#050052)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        set x to (-229)\n        set y to (-73)\n        broadcast (New Level  v)\n    end\n    if <touching color (#ff1d1d)?> then\n        go to x: (-229) y: (-73)\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [end v]\ngo to x: (3) y: (-78)\n\n@Thumbnail\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n
Lmao first platformer I ever made\n\nThis was originally shared like two years ago, I reshared it for a reason I can't remember.\n\nArrow keys to move.\n\nMusic: Faded - Alan Walker