-=-Teleport-=- (Platformer!)


@Stage\n\nwhen flag clicked\nhide variable [level v]\nhide variable [xv v]\nhide variable [yv v]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset size to (250) %\nset [yv v] to [0]\nset [xv v] to [0]\n\nwhen flag clicked\ngo to x: (-218) y: (0)\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        set [xv v] to [5]\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        set [xv v] to [-5]\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\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 (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10.8]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [next level - v]\ngo to x: (-218) y: (0)\n\nwhen flag clicked\nforever\n    if <touching color (#ffcccc)?> then\n        go to x: (-218) y: (-120)\n    end\nend\n\nwhen I receive [fast people v]\nhide variable [timer: v]\nshow\n\nwhen [space v] key pressed\nnext costume\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level - v]\nnext costume\n\nwhen flag clicked\nshow\ngo [backward v] (20) layers\ngo to x: (0) y: (-2)\nset size to (100) %\n\nwhen I receive [goodj v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nset [level v] to [0]\nshow\nset size to (300) %\npoint in direction (90)\ngo to x: (212) y: (155)\nforever\n    wait (0.001) seconds\n    turn right (20) degrees\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (Next Level - v)\n        wait (0.4) seconds\n        change [level v] by (1)\n        if <(level) = [10]> then\n            wait (1) seconds\n            broadcast (GoodJ v)\n        end\n    end\nend\n\nwhen I receive [goodj v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nset [helper v] to [0]\nset size to (71.4) %\nshow\ngo to x: (-198) y: (149)\nshow variable [time v]\nset [time v] to [0]\nrepeat until <(Helper) = [3]>\n    wait (0.9) seconds\n    change [time v] by (1)\nend\n\nwhen I receive [goodj v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\nhide variable [time4 v]\nhide variable [level v]\nhide variable [time1 v]\nhide variable [time2 v]\nhide variable [time3 v]\nhide variable [time4 v]\nhide variable [☁ un1 v]\nhide variable [☁ un2 v]\nhide variable [☁ un3 v]\nhide variable [time x v]\nhide variable [timer: v]\n\nwhen I receive [fast people v]\nshow\nset [time x v] to (Time)\nshow variable [time x v]\nset [un v] to (username)\nshow variable [un v]\n\n@Sprite6\n\nwhen I receive [goodj v]\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    play sound [Murad - Run \(Inspired By Alan Walker\) NCN Release.mp3 v] until done\nend\n\n@Sprite7\n\nwhen I receive [goodj v]\nshow\ngo to x: (0) y: (300)\nglide (2.3) secs to x: (0) y: (0)\nhide variable [time v]\nset [helper v] to [3]\nrepeat (1)\n    repeat (20)\n        wait (0.1) seconds\n        change y by (1)\n    end\n    wait (0.1) seconds\n    repeat (50)\n        wait (0.1) seconds\n        change y by (-1)\n    end\nend\nhide\nbroadcast (Fast people v)\n\nwhen flag clicked\nset [time v] to [0]\nset [random reset v] to (pick random (1) to (65))\nforever\n    if <(Random RESET) = [47]> then\n        set [un1 v] to [0]\n        set [un2 v] to [0]\n        set [un3 v] to [0]\n        set [time1 v] to [0]\n        set [time2 v] to [0]\n        set [time3 v] to [0]\n        set [time4 v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Time1) = [0]> then\n        set [time1 v] to [135]\n    end\n    if <(Time2) = [0]> then\n        set [time2 v] to [150]\n    end\n    if <(Time3) = [0]> then\n        set [time3 v] to [189]\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [un1 v]\nhide variable [un2 v]\nhide variable [un3 v]\nhide variable [un v]\nforever\n    if <(username) = [Jlam09]> then\n        show\n        go to [front v] layer\n        go to x: (0) y: (0)\n    end\nend\n\n