Explore || a platformer


@Stage\n\n@Sprite1\n\nwhen flag clicked\nset size to (20) %\ngo to x: (-201) y: (-113)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n        point in direction (-90)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n        point in direction (90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#00ad1c)?> then\n        change y by (1)\n        if <touching color (#00ad1c)?> then\n            change y by (1)\n            if <touching color (#00ad1c)?> then\n                change y by (1)\n                if <touching color (#00ad1c)?> then\n                    change y by (1)\n                    if <touching color (#00ad1c)?> then\n                        change y by (1)\n                        if <touching color (#00ad1c)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#00ad1c)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#00ad1c)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-201) y: (-113)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-201) y: (-113)\n    end\n    if <touching color (#ff0000)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-201) y: (-113)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-72)\n\nwhen flag clicked\nforever\n    play sound [Make It Rain - Johan Borjesson \[House Music\].mp3 v] until done\nend\n\nwhen flag clicked\nshow\nforever\n    wait (0.01) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nset [ghost v] effect to (60)\nrepeat (15)\n    change size by (-0.5)\nend\ndelete this clone\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (-30)\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\nend\n\n