Distraction - A Platformer⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀#all #games
@Stage\n\nwhen I receive [game start v]\nforever\n    if <not <<(level) = [7]> or <<(level) = [8]> or <<(level) = [9]> or <<(level) = [10]> or <(level) = [11]>>>>>> then\n        play sound [TheFatRat & Anjulie - Close To The Sun v] until done\n    else\n        play sound [3 12 Shadow Man Stage v] until done\n    end\nend\n\nwhen flag clicked\nwait (0) seconds\nswitch backdrop to (1 v)\nwait until <(level) > [6]>\nstop all sounds\nswitch backdrop to (2 v)\nwait until <(level) > [11]>\nstop all sounds\nswitch backdrop to (1 v)\n\nwait until <(level) > [10]>\n\n@Sprite1 :)\n\nwhen flag clicked\nbroadcast (Game Start v)\n\nwhen I receive [game start v]\nset [level v] to [1]\nshow\ngo to x: (-180) y: (0)\nset [y v] to [0]\nset [x v] to [0]\nshow\nset size to (100) %\ngo to [front v] layer\ngo [backward v] (2) layers\nforever\n    go to [front v] layer\n    change [in air v] by (1)\n    if <(Frozen?) = [0]> then\n        if <key (left arrow v) pressed?> then\n            change [x v] by (-0.75)\n        end\n        if <key (right arrow v) pressed?> then\n            change [x v] by (0.75)\n        end\n        set [x v] to ((x) * (0.9))\n        change x by (x)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change y by (1)\n                            if <touching (levels v)?> then\n                                change y by (1)\n                                if <touching (levels v)?> then\n                                    change y by (1)\n                                    if <touching (levels v)?> then\n                                        if <(Frozen?) = [0]> then\n                                            change y by (-8)\n                                            change x by ((x) * (-1))\n                                            if <key (up arrow v) pressed?> then\n                                                if <(x) > [0]> then\n                                                    set [x v] to [-5]\n                                                else\n                                                    set [x v] to [5]\n                                                end\n                                                set [y v] to (((6) - (<(y) > [6]> * ((8) - (y)))) + (6))\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <(Frozen?) = [0]> then\n        if <key (up arrow v) pressed?> then\n            if <(in air) < [5]> then\n                set [y v] to [9]\n            end\n        end\n        if <not <touching (levels v)?>> then\n            change [y v] by (gravity)\n        end\n        if <key (up arrow v) pressed?> then\n            set [gravity v] to [-0.6]\n        else\n            set [gravity v] to [-0.7]\n        end\n        change y by (y)\n        if <touching (levels v)?> then\n            change y by ((y) * (-1))\n            if <not <(y) > [0]>> then\n                set [in air v] to [0]\n            end\n            set [y v] to [0]\n        end\n    end\n    if <(x position) > [240]> then\n        if <not <(level) = [22]>> then\n            change [level v] by (1)\n            broadcast (Level complete v)\n            set [y v] to [0]\n            set [x v] to [0]\n            go to x: (-180) y: (0)\n        end\n    end\n    if <<touching (oh nooo.... v)?> or <(y position) < [-180]>> then\n        start sound [Crunch v]\n        go to x: (-180) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\nend\n\n@Distractions!!!!!!!!!!!\n\nwhen flag clicked\nset [level changed? v] to [0]\nhide\n\nwhen I receive [game start v]\nforever\n    wait until <(level) = [1]>\n    go to x: (0) y: (112)\n    switch costume to (wasd v)\n    create clone of (_myself_ v)\n    wait until <(level) = [2]>\n    go to x: (-53) y: (112)\n    switch costume to (ground v)\n    create clone of (_myself_ v)\n    go to x: (92) y: (112)\n    switch costume to (lava v)\n    create clone of (_myself_ v)\n    wait until <(level) = [3]>\n    go to x: (0) y: (112)\n    switch costume to (beleave v)\n    create clone of (_myself_ v)\n    the rest of the code\n    forever\n        Distractions Level [8] Time Between in frames [26]\n        Distractions Level [9] Time Between in frames [15]\n        Distractions Level [10] Time Between in frames [10]\n        Distractions Level [11] Time Between in frames [8]\n        Distractions Level [12] Time Between in frames [7]\n        Distractions Level [13] Time Between in frames [6]\n        Distractions Level [14] Time Between in frames [60]\n        Distractions Level [15] Time Between in frames [5]\n        Distractions Level [16] Time Between in frames [2]\n        Distractions Level [17] Time Between in frames [1]\n        Distractions Level [18] Time Between in frames [0]\n        Distractions Level [19] 2 per frame\n        Distractions Level [20] 2 per frame\n        Distractions Level [21] 2 per frame\n    end\nend\n\nwhen I start as a clone\ngo to [front v] layer\nif <(level) > [7]> then\n    clear graphic effects\n    set [ghost v] effect to (25)\n    switch costume to (pick random (9) to (28))\n    show\n    go to (random position v)\n    set [tvdir v] to (pick random (0) to (1))\n    if <(tvdir) = [1]> then\n        set y to (180)\n    else\n        set y to (-180)\n    end\n    set size to (pick random (90) to (110)) %\n    if <(tvdir) = [1]> then\n        set [xv/tv v] to (pick random (-25) to (-30))\n    else\n        set [xv/tv v] to (pick random (25) to (30))\n    end\n    if <(tvdir) = [1]> then\n        repeat (pick random (14) to (26))\n            change y by ((xv/tv) / (2))\n            change [xv/tv v] by (1.4)\n            change [ghost v] effect by (1)\n        end\n    else\n        repeat (pick random (14) to (26))\n            change y by ((xv/tv) / (2))\n            change [xv/tv v] by (-1.4)\n            change [ghost v] effect by (1)\n        end\n    end\n    set [tvdir v] to (pick random (0) to (1))\n    set [xv/tv v] to (pick random (25) to (30))\n    set [yv v] to (pick random (15) to (10))\n    repeat until <(level changed?) = [1]>\n        change [yv v] by (-1)\n        change y by (yv)\n        set [xv/tv v] to ((xv/tv) * (0.99))\n        change [ghost v] effect by (0.3)\n        if <(y position) < [-120]> then\n            set [yv v] to (pick random (15) to (10))\n        end\n        if <(tvdir) = [1]> then\n            change x by (((xv/tv) / (2)) * (-1))\n        else\n            change x by ((xv/tv) / (2))\n        end\n        if <(tvdir) = [1]> then\n            turn right ((xv/tv) / (2)) degrees\n        else\n            turn left ((xv/tv) / (2)) degrees\n        end\n        if <(xv/tv) < [0.1]> then\n            change [ghost v] effect by (1)\n        end\n        if <<(xv/tv) < [0.01]> and <<touching (_edge_ v)?> and <<(x position) > [280]> or <[-280] > (x position)>>>> then\n            repeat (10)\n                change [ghost v] effect by (4)\n            end\n            delete this clone\n        else\n            if <<[-250] > (x position)> or <(x position) > [300]>> then\n                if <(x position) > [300]> then\n                    repeat until <not <(x position) > [300]>>\n                        change x by (-20)\n                    end\n                else\n                    repeat until <not <[-250] > (x position)>>\n                        change x by (20)\n                    end\n                end\n                set [tvdir v] to ((tvdir) * (-1.1))\n                set [xv/tv v] to ((xv/tv) * (-1.1))\n            end\n        end\n    end\n    delete this clone\nelse\n    clear graphic effects\n    set [personal when clone created level v] to (level)\n    set [ghost v] effect to (25)\n    show\n    if <(costume [number v]) = [3]> then\n        wait (0.2) seconds\n    end\n    repeat until <(level) > [8]>\n        repeat (6)\n            change y by (0.5)\n            if <not <(level) = (personal when clone created level)>> then\n                delete this clone\n            end\n        end\n        repeat (6)\n            change y by (-0.5)\n            if <not <(level) = (personal when clone created level)>> then\n                delete this clone\n            end\n        end\n    end\nend\n\ndelete this clone\n\ndefine Distractions Level (input1) Time Between in frames (input2)\nif <(level) = (input1)> then\n    repeat until <not <(level) = (input1)>>\n        repeat (input2)\n            if <not <(level) = (input1)>> then\n                stop [this script v]\n            end\n        end\n        create clone of (_myself_ v)\n    end\nend\n\nDistractions Level [] Time Between in frames []\n\nwhen I receive [game start v]\nforever\n    if <(level) > [4]> then\nend\n\ncreate clone of (_myself_ v)\n\nwhen I receive [level complete v]\nset [level changed? v] to [1]\nwait (0.1) seconds\nset [level changed? v] to [0]\n\ndelete this clone\n\nturn right (15) degrees\n\ndefine the rest of the code\nwait until <(level) = [4]>\nswitch costume to (stop v)\ncreate clone of (_myself_ v)\nwait until <(level) = [5]>\nswitch costume to (cookie pit v)\ncreate clone of (_myself_ v)\nwait until <(level) = [6]>\nswitch costume to (believe v)\ncreate clone of (_myself_ v)\nwait until <(level) = [7]>\nswitch costume to (uh oh v)\ncreate clone of (_myself_ v)\n\nwait (1) seconds\n\nchange x by (10)\n\nchange y by (10)\n\nset [tvdir v] to (pick random (0) to (1))\n\nwhen I start as a clone\nif <(level) > [7]> then\n    wait (10) seconds\n    delete this clone\nend\n\ndefine Distractions Level (in put!!) 2 per frame\nif <(level) = (in put!!)> then\n    repeat until <not <(level) = (in put!!)>>\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n        if <not <(level) = (in put!!)>> then\n            stop [this script v]\n        end\n    end\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game start v]\nshow\ngo to [front v] layer\nclear graphic effects\nforever\n    switch costume to (level)\nend\n\n@Oh nooo....\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (3) layers\nhide\nforever\n    switch costume to (level)\nend\n\nwhen I receive [game start v]\nshow\n\n@time counter\n\nwhen flag clicked\nhide\nset [-position x v] to [0]\nset [-cloneid v] to [0]\nset [-position x v] to [-40]\nrepeat (7)\n    change [-cloneid v] by (1)\n    create clone of (_myself_ v)\n    change [-position x v] by (25)\nend\n\nwhen I start as a clone\nset size to (45) %\nforever\n    if <(level) = [22]> then\n        if <(-CloneID) > (length of (time))> then\n            hide\n        else\n            show\n            go to [front v] layer\n            go to [front v] layer\n            switch costume to (letter (-CloneID) of (time))\n            go to x: (-position x) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (1) seconds\n    if <not <(level) = [22]>> then\n        change [time v] by (1)\n    end\nend\n\nforever\n\nclear graphic effects\nshow\n\n@TN\n\nwhen flag clicked\nhide\n\n
Listen to the narrator. :)\nPlay here for no lag! (and more distractions)\nhttps://turbowarp.org/537983584?interpolate\n\nDistraction - A platformer! Just don't get thrown off by the moving text...\n\nDon't play if you have seizures please, It will make it so much worse.\n\nHope you enjoy, and thanks so much for 2k views!\nHappy summer!\n\n\n\n:D