Elements || Platformer Collab
@Stage\n\nwhen I receive [play the platformer v]\nset [brightness v] effect to (0)\nswitch backdrop to (day v)\n\nwhen flag clicked\nset [level v] to []\nset [brightness v] effect to (0)\nswitch backdrop to (backdrop2 v)\nwait until <(Level) = [14]>\nrepeat until <(Level) = [19]>\n    switch backdrop to (backdrop3 v)\nend\nwait until <(Level) = [19]>\nswitch backdrop to (day v)\n\nwhen I receive [move into play screen v]\nset [brightness v] effect to (0)\nswitch backdrop to (day v)\n\nwhen I receive [backdrop change brightness v]\nrepeat (25)\n    change [brightness v] effect by (4)\nend\n\nwhen I receive [menu v]\nswitch backdrop to (backdrop2 v)\nclear graphic effects\n\nwhen I receive [play the platformer v]\nif <(song choice) = [never]> then\n    forever\n        play sound [Vexento - Never Give Up v] until done\n    end\nend\nif <(song choice) = [inferno]> then\n    forever\n        play sound [Inferno v] until done\n    end\nend\nif <(song choice) = [don't know the name]> then\n    forever\n        play sound [venxeto - idk the name of the music v] until done\n    end\nend\nif <(song choice) = [invincible]> then\n    forever\n        play sound [DEAF KEV - Invincible \[NCS Release\] v] until done\n    end\nend\nif <(song choice) = [nobody knows the name]> then\n    forever\n        play sound [$RERW5ZB v] until done\n    end\nend\nif <(song choice) = [levels]> then\n    forever\n        play sound [Avicii - Levels 2 \(1\) v] until done\n    end\nend\n\nchange [level v] by (1)\n\nwhen flag clicked\nwait until <(Level) = [37]>\nforever\n    switch backdrop to (night v)\n    switch backdrop to (night v)\n    switch backdrop to (night v)\nend\n\nwhen flag clicked\nwait until <(Level) = [37]>\nrepeat until <(Level) = [1000]>\n    switch backdrop to (night v)\n    switch backdrop to (night v)\n    switch backdrop to (night v)\n    forever\n        switch backdrop to (night v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) > [13]> and <(Level) < [19]>> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <(Level) > [36]> then\n        wait (pick random (5) to (7)) seconds\n        set [brightness v] effect to (75)\n        repeat (25)\n            change [brightness v] effect by (-3)\n        end\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@Blank\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [play the platformer v]\nbroadcast (Script v)\n\ndefine Set Costume\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    switch costume to (up-right v)\nelse\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (up-left v)\n    else\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (up v)\n        else\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                switch costume to (right v)\n            else\n                if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                    switch costume to (left v)\n                else\n                    switch costume to (normal v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [dead v]\nset [yv v] to [10]\nset [xv v] to (((0) - (xv)) * (2.5))\nset [i v] to [0]\nset [brightness v] effect to (100)\nrepeat until <(y position) < [-175]>\n    if <(Pause?) = [No]> then\n        switch costume to (normal v)\n        change y by (Yv)\n        change x by (xv)\n        change [yv v] by (-1)\n        change [xv v] by ((0) - ((xv) / ([abs v] of (xv) )))\n        if <(i) < [25]> then\n            change [brightness v] effect by (-4)\n        end\n        change [i v] by (1)\n        if <([abs v] of (xv) ) = (xv)> then\n            turn right (1) degrees\n        else\n            turn left (1) degrees\n        end\n        if <<(x position) < [-240]> or <(x position) > [240]>> then\n            hide\n            broadcast (Hide v)\n        else\n            show\n            broadcast (Show v)\n        end\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-207) y: (-40)\nset [xv v] to [0]\nset [yv v] to [0]\nclear graphic effects\npoint in direction (90)\n\nshow\n\nwhen I receive [script v]\nshow\ngo to [front v] layer\nclear graphic effects\ngo to x: (-207) y: (-40)\nset [xv v] to [0]\nset [yv v] to [0]\nset [level v] to [1]\nset [died on level v] to [0]\npoint in direction (90)\nset [go through ground v] to [False]\nforever\n    if <(Pause?) = [No]> then\n        switch costume to (hitbox v)\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            Changing x by [1]\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            Changing x by [-1]\n        end\n        set [xv v] to ((xv) * (0.9))\n        change x by (xv)\n        if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n            change y by (1)\n            if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n                change y by (1)\n                if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n                    change y by (1)\n                    if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n                        change y by (1)\n                        if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n                            change x by ((0) - (xv))\n                            change y by (-4)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                set [yv v] to [14]\n                                if <([abs v] of (xv) ) = (xv)> then\n                                    set [xv v] to [-10]\n                                else\n                                    set [xv v] to [10]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <touching (water v)?> then\n        change [yv v] by (-0.5)\n        change y by (Yv)\n    else\n        change [yv v] by (-1)\n        change y by (Yv)\n    end\n    if <<touching (ground v)?> and <(Go through ground) = [False]>> then\n        change y by ((0) - (Yv))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<<touching (ground v)?> or <touching (water v)?>> and <(Go through ground) = [False]>>> then\n        if <touching (water v)?> then\n            set [yv v] to [7]\n        else\n            if <<(Fire Used?) = [No]> and <key (c v) pressed?>> then\n                set [yv v] to [18]\n            else\n                set [yv v] to [14]\n            end\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <touching (lightning attack v)?>> then\n        if <<not <(distance to [water droplet v]) < [50]>> or <not <([costume # v] of [water droplet v]) = [4]>>> then\n            broadcast (dead v) and wait\n            go to x: (-207) y: (-40)\n            set [xv v] to [0]\n            set [yv v] to [0]\n            clear graphic effects\n            point in direction (90)\n            show\n            broadcast (Show v)\n            change [died on level v] by (1)\n        end\n    end\n    if <<touching (spikes v)?> or <touching (lightning attack v)?>> then\n        if <not <(confusion used???) = [no]>> then\n            broadcast (dead v) and wait\n            go to x: (-207) y: (-40)\n            set [xv v] to [0]\n            set [yv v] to [0]\n            clear graphic effects\n            point in direction (90)\n            show\n            broadcast (Show v)\n            change [died on level v] by (1)\n        end\n    end\n    if <<not <(Level) = [13]>> and <(y position) < [-175]>> then\n        broadcast (dead v) and wait\n        go to x: (-207) y: (-40)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        clear graphic effects\n        point in direction (90)\n        show\n        broadcast (Show v)\n        change [died on level v] by (1)\n    end\n    if <<(x position) > [210]> or <<(Level) = [13]> and <(y position) < [-175]>>> then\n        change [level v] by (1)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-207) y: (-40)\n        broadcast (trajectory screen v)\n        set [died on level v] to [0]\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [25]\n        broadcast (trampoline v)\n    end\n    Set Costume\nend\n\nwhen I receive [skip v]\ngo to x: (-207) y: (-40)\nset [xv v] to [0]\nset [yv v] to [0]\nchange [level v] by (1)\nclear graphic effects\npoint in direction (90)\nshow\n\ndefine Changing x by (x)\nif <<(Fire Used?) = [No]> and <key (c v) pressed?>> then\n    change [xv v] by ((x) * (2))\nelse\n    if <<(confusion used???) = [no]> and <key (v v) pressed?>> then\n        change [xv v] by ((x) / (3))\n    else\n        if <touching (water v)?> then\n            change [xv v] by ((x) / (2))\n        else\n            change [xv v] by (x)\n        end\n    end\nend\nset [dir v] to (((x) / ([abs v] of (x) )) * (90))\n\nwhen I receive [animation time =\) v]\nhide\n\nwhen flag clicked\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [play the platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [level 14 in the ground v]\nswitch costume to (14 v)\n\nwhen I receive [play the platformer v]\nshow\nwait until <(Level) = [19]>\nbroadcast (particles back on v)\nwait until <(Level) = [43]>\nbroadcast (animation time =\) v)\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (1) layers\nforever\n    if <(Go through ground) = [True]> then\n        set [ghost v] effect to (25)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nchange [level v] by (40)\n\nwhen I receive [animation time =\) v]\nhide\n\n@Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play the platformer v]\nshow\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(Level) = [27]>\ngo [backward v] (1) layers\n\nwhen I receive [animation time =\) v]\nhide\n\n@messages\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [play the platformer v]\nforever\n    go to [front v] layer\n    switch costume to (Level)\n    if <(Time of Day) = [night]> then\n        set [brightness v] effect to (100)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [play the platformer v]\nshow\n\nwhen I receive [animation time =\) v]\nhide\n\n@trampoline\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (75) %\nhide\nforever\n    if <([costume # v] of [ground v]) = [3]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [trampoline v]\nswitch costume to (costume1 v)\nrepeat (10)\n    next costume\n    wait (0.03) seconds\n    if <(costume [number v]) = [11]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@elements\n\nwhen flag clicked\ngo to x: (0) y: (10000000)\nshow\nbroadcast (start the game v)\n\nwhen I receive [start the game v]\nshow\nglide (0.5) secs to x: (0) y: (0)\nglide (0.1) secs to x: (0) y: (15)\nglide (0.2) secs to x: (0) y: (0)\n\nwhen I receive [move into play screen v]\nhide\n\nwhen I receive [play the platformer v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(Hey.. You are not supposed to be showing! >:\() = [Yes]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [customize screen v]\nhide\n\nhide\n\n@play button\n\nwhen flag clicked\nset [brightness v] effect to (100)\nset size to (150) %\ngo to x: (120) y: (-10000000000)\nhide\n\nwhen I receive [start the game v]\nshow\nglide (0.7) secs to x: (120) y: (-50)\n\nwhen I receive [start the game v]\nrepeat (10)\n    change [brightness v] effect by (-10)\n    change size by (-5)\nend\n\nwhen this sprite clicked\nbroadcast (move into play screen v)\nset [hey.. you are not supposed to be showing! >:\( v] to [Yes]\nforever\n    hide\nend\n\nwhen I receive [move into play screen v]\nhide\n\nwhen I receive [play the platformer v]\nhide\n\nwhen I receive [start the game v]\nset size to (150) %\nset [brightness v] effect to (100)\nset size to (150) %\nshow\n\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n        if <(platformer of instructions on?) = [yes]> then\n            set [allow touch v] to [1]\n            broadcast (play the game touch v)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [menu v]\nbroadcast (start the game v)\n\nwhen flag clicked\nforever\n    if <(Hey.. You are not supposed to be showing! >:\() = [Yes]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [instructions v]\nset [platformer of instructions on? v] to [no]\n\nwhen I receive [play the platformer v]\nset [platformer of instructions on? v] to [no]\n\nwhen I receive [customize screen v]\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@move into play screen2\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [move into play screen v]\nset [platformer of instructions on? v] to [no]\nset [brightness v] effect to (0)\nshow\nswitch costume to (costume1 v)\nrepeat until <(costume [number v]) = [23]>\n    next costume\n    wait (0.1) seconds\nend\nbroadcast (backdrop change brightness v)\nrepeat (25)\n    change [brightness v] effect by (4)\nend\nwait (0.1) seconds\nbroadcast (play the platformer v)\nset [allow touch v] to [True]\n\nwhen I receive [play the platformer v]\nhide\n\n@squares\n\nwhen I start as a clone\nswitch costume to (dot v)\npoint in direction (pick random (50) to (150))\ngo to [back v] layer\ngo to x: (-300) y: (pick random (-150) to (150))\nshow\nset [ghost v] effect to (pick random (80) to (100))\nswitch costume to (costume1 v)\nset size to (pick random (75) to (100)) %\ngo to [back v] layer\nrepeat until <(x position) > [250]>\n    if <(Pause?) = [No]> then\n        change x by (7)\n        wait (0.03) seconds\n    end\nend\ndelete this clone\n\nwhen flag clicked\ndelete this clone\n\nwhen I receive [play the platformer v]\nhide\nforever\n    if <(Pause?) = [No]> then\n        if <(Level) < [13]> then\n            create clone of (_myself_ v)\n            wait (0.17) seconds\n        end\n    end\nend\n\nwhen I receive [particles back on v]\nhide\nforever\n    if <(Pause?) = [No]> then\n        create clone of (_myself_ v)\n        wait (0.17) seconds\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@particle\n\nwhen I start as a clone\nswitch costume to (dot v)\ngo to [back v] layer\ngo to x: (300) y: (pick random (-150) to (150))\nshow\nset [ghost v] effect to (pick random (75) to (100))\nswitch costume to (costume1 v)\nset size to (pick random (50) to (75)) %\nrepeat until <(x position) < [-239]>\n    if <(Pause?) = [No]> then\n        change x by (-7)\n        wait (0.03) seconds\n    end\nend\ndelete this clone\n\nwhen I receive [play the platformer v]\nhide\nforever\n    if <(Pause?) = [No]> then\n        if <(Level) < [13]> then\n            create clone of (_myself_ v)\n            wait (0.3) seconds\n        end\n    end\nend\n\nwhen flag clicked\ndelete this clone\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [particles back on v]\nhide\nforever\n    if <(Pause?) = [No]> then\n        create clone of (_myself_ v)\n        wait (0.17) seconds\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@instructions\n\nwhen flag clicked\nset [brightness v] effect to (100)\nset size to (150) %\ngo to x: (-120) y: (-10000000000)\nhide\n\nwhen I receive [start the game v]\nshow\nglide (0.7) secs to x: (-120) y: (-50)\n\nwhen I receive [start the game v]\nset [platformer of instructions on? v] to [yes]\nset size to (150) %\nrepeat (10)\n    change [brightness v] effect by (-10)\n    change size by (-5)\nend\n\nwhen this sprite clicked\nbroadcast (instructions v)\n\nwhen I receive [move into play screen v]\nhide\n\nwhen I receive [play the platformer v]\nforever\n    hide\nend\n\nwhen I receive [instructions v]\nset [brightness v] effect to (100)\nset size to (150) %\nhide\n\nwhen flag clicked\nset [platformer of instructions on? v] to [yes]\n\nwhen flag clicked\nforever\n    if <(Hey.. You are not supposed to be showing! >:\() = [Yes]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nset [level v] to []\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n        if <(platformer of instructions on?) = [yes]> then\n            set [allow touch v] to [1]\n            broadcast (instructions touch v)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [play the platformer v]\nset [platformer of instructions on? v] to [no]\n\nwhen I receive [instructions v]\nset [platformer of instructions on? v] to [no]\n\nwhen I receive [customize screen v]\nhide\n\n@instructions page\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nforever\n    if <key (right arrow v) pressed?> then\n        next costume\n        wait until <not <key (right arrow v) pressed?>>\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to ((costume [number v]) - (1))\n        wait until <not <key (left arrow v) pressed?>>\n    end\nend\n\nwhen I receive [instructions v]\nset [instructions v] to [1]\nshow\n\nwhen I receive [start the game v]\nset [instructions v] to [0]\n\nwhen I receive [start the game v]\nhide\n\nwhen I receive [start the game v]\nset [platformer of instructions on? v] to [no]\n\nwhen I receive [animation time =\) v]\nhide\n\n@lightning attack\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait until <(Level) = [8]>\nshow\nrepeat until <(Level) = [9]>\n    if <(Pause?) = [No]> then\n        go to x: (pick random (-180) to (180)) y: (28)\n        wait (1) seconds\n    end\nend\nhide\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    if <(Pause?) = [No]> then\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        hide\n    end\nend\n\n@fire attack\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait until <(Level) = [9]>\nset [ghost v] effect to (100)\nrepeat until <(Level) = [10]>\n    if <touching (player v)?> then\n        show\n        broadcast (dead v) and wait\n    else\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\n\nwhen I receive [animation time =\) v]\nhide\n\n@Menu buttons\n\nwhen flag clicked\nset [pause? v] to [No]\nset [allow touch v] to [False]\nset size to (50) %\nhide\n\nwhen I receive [play the platformer v]\ngo to x: (-209) y: (151)\nswitch costume to (pause v)\nshow\n\nwhen this sprite clicked\nif <(costume [name v]) = [Pause]> then\n    set [pause? v] to [Yes]\n    switch costume to (play v)\n    Create Pause Options\n    repeat (2)\n        go to [front v] layer\n    end\nelse\n    if <(costume [name v]) = [Play]> then\n        set [pause? v] to [No]\n        switch costume to (pause v)\n        broadcast (Get rid of menu selection v)\n    end\nend\nif <not <(Clone ID) = [Sprite]>> then\n    if <(Clone ID) = [Skip]> then\n        if <<(Died on level) > [9]> or <<(username) = [PleaseDontPunchMe]> or <(username) = [viciousvipertest]>>> then\n            broadcast (Skip v)\n        else\n            repeat (2)\n                change x by (-5)\n            end\n            repeat (4)\n                change x by (5)\n            end\n            repeat (2)\n                change x by (-5)\n            end\n            go to x: (0) y: (0)\n        end\n    else\n        if <not <(Clone ID) = [Control]>> then\n            broadcast (Clone ID)\n        end\n    end\nend\n\ndefine Create Pause Options\nset [clone id v] to [Menu]\ncreate clone of (_myself_ v)\nset [clone id v] to [Skip]\ncreate clone of (_myself_ v)\nset [clone id v] to [Restart]\ncreate clone of (_myself_ v)\nset [clone id v] to [Dimmer]\ncreate clone of (_myself_ v)\nset [clone id v] to [Sprite]\n\nwhen I start as a clone\nswitch costume to (Clone ID)\nset size to (75) %\nif <(Clone ID) = [Dimmer]> then\n    set [ghost v] effect to (25)\n    set size to (100) %\n    go to [front v] layer\nend\nif <(Clone ID) = [Menu]> then\n    go to x: (-100) y: (0)\n    go to [front v] layer\nelse\n    if <(Clone ID) = [Restart]> then\n        go to x: (100) y: (0)\n        go to [front v] layer\n    else\n        if <(Clone ID) = [Back]> then\n            go to x: (-209) y: (151)\n            go to [front v] layer\n        else\n            go to x: (0) y: (0)\n            go to [front v] layer\n        end\n    end\nend\nif <not <(Clone ID) = [Dimmer]>> then\n    forever\n        if <(Clone ID) = [Skip]> then\n            if <<touching (mouse-pointer v)?> and <(Died on level) > [9]>> then\n                set [brightness v] effect to (20)\n                broadcast (join (Clone ID) [ Touch])\n            else\n                set [brightness v] effect to (0)\n                go to [front v] layer\n            end\n        else\n            if <touching (mouse-pointer v)?> then\n                set [brightness v] effect to (20)\n                broadcast (join (Clone ID) [ Touch])\n            else\n                set [brightness v] effect to (0)\n                go to [front v] layer\n            end\n        end\n    end\nend\n\nwhen I receive [restart v]\nrepeat (1)\n    delete this clone\nend\nswitch costume to (pause v)\nset [pause? v] to [No]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n        broadcast (join (costume [name v]) [ Touch])\n    else\n        set [brightness v] effect to (0)\n        go to [front v] layer\n    end\nend\n\nwhen I receive [get rid of menu selection v]\ndelete this clone\n\nwhen I receive [skip v]\nrepeat (1)\n    delete this clone\nend\nswitch costume to (pause v)\nset [pause? v] to [No]\nset [died on level v] to [0]\n\nwhen I receive [menu v]\nrepeat (1)\n    delete this clone\nend\nset [clone id v] to [Control]\ncreate clone of (_myself_ v)\nset [clone id v] to [Back]\ncreate clone of (_myself_ v)\nset [clone id v] to [Dimmer]\ncreate clone of (_myself_ v)\nhide\n\nwhen I receive [back v]\nrepeat (1)\n    delete this clone\nend\nshow\nCreate Pause Options\n\nwhen flag clicked\nset [hey.. you are not supposed to be showing! >:\( v] to [No]\n\nwhen I receive [animation time =\) v]\nhide\n\n@shadows\n\nwhen flag clicked\ngo to x: (36) y: (28)\ngo to [back v] layer\nset [ghost v] effect to (60)\nhide\n\nwhen I receive [play the platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\nset [level v] to [19]\n\nwhen I receive [animation time =\) v]\nhide\n\n@water droplet\n\nwhen flag clicked\nswitch costume to (costume3 v)\nhide\n\nwhen [z v] key pressed\nif <(Water Used?) = [No]> then\n    if <(Level) > [9]> then\n        point in direction (Dir)\n        switch costume to (costume3 v)\n        go to x: (([x position v] of [player v]) + (((Dir) / ([abs v] of (Dir) )) * (30))) y: ([y position v] of [player v])\n        show\n        repeat until <<<touching (ground v)?> or <touching (spikes v)?>> or <touching (_edge_ v)?>>\n            move (7) steps\n        end\n        if <touching (spikes v)?> then\n            repeat (4)\n                move (7) steps\n            end\n        end\n        switch costume to (costume4 v)\n        go to [front v] layer\n        set [water used? v] to [Yes]\n        wait (5) seconds\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        clear graphic effects\n    end\nend\n\nwhen I receive [trajectory screen v]\nset [water used? v] to [No]\nhide\n\nwhen I receive [restart v]\nset [water used? v] to [No]\nhide\n\nwhen I receive [skip v]\nset [water used? v] to [No]\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@Light\n\nwhen I receive [play the platformer v]\nshow\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nwait until <(Level) = [14]>\nswitch costume to (costume2 v)\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [animation time =\) v]\nhide\n\n@background\n\nwhen flag clicked\ngo [backward v] (1) layers\nswitch costume to (level 1 v)\nhide\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [play the platformer v]\ngo [backward v] (1) layers\nshow\n\nwait until <(Level) = [21]>\nshow\nswitch costume to (level 21 v)\n\nwhen I receive [animation time =\) v]\nhide\n\n@Particles\n\nwhen flag clicked\nhide\nforever\n    if <<(Level) > [13]> and <(Level) < [19]>> then\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n        wait (pick random (0) to (0.2)) seconds\n    end\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\ngo to [front v] layer\nset size to (pick random (50) to (125)) %\nset [ghost v] effect to (pick random (92) to (100))\nset [paticle x v] to (pick random (-5) to (5))\nset [paticle y v] to (pick random (0) to (6))\nforever\n    change [paticle y v] by (-0.5)\n    set [paticle x v] to ((Paticle X) * (0.95))\n    change y by (Paticle Y)\n    change x by (Paticle X)\n    if <(y position) < [-175]> then\n        delete this clone\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@Help GUI\n\nwhen flag clicked\nshow\nforever\n    hide\n    go to x: (mouse x) y: (mouse y)\nend\n\nwhen I receive [restart touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (restart v)\n    show\nend\n\nwhen I receive [skip touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (skip v)\n    show\nend\n\nwhen I receive [menu touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (menu v)\n    show\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [play touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (play v)\n    show\nend\n\nwhen I receive [pause touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (pause v)\n    show\nend\n\nwhen I receive [back touch v]\nif <(Allow touch) = [True]> then\n    switch costume to (back v)\n    show\nend\n\nwhen I receive [play the game touch v]\nif <(Allow touch) = [1]> then\n    switch costume to (play the platformer v)\n    show\nend\n\nwhen I receive [instructions touch v]\nif <(Allow touch) = [1]> then\n    switch costume to (instructions v)\n    show\nend\n\nwhen I receive [customize touch v]\nif <(Allow touch) = [1]> then\n    switch costume to (music v)\n    show\nend\n\nwhen I receive [back to the menu screen touch v]\nif <(Allow touch) = [2]> then\n    switch costume to (back v)\n    show\nend\n\nwhen I receive [done touch v]\nif <(Allow touch) = [2]> then\n    switch costume to (done v)\n    show\nend\n\nwhen I receive [play the music? v]\nif <(Allow touch) = [2]> then\n    switch costume to (review of the song v)\n    show\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@animation for instructions\n\nwhen flag clicked\nhide\nforever\n    if <(instructions) = [1]> then\n        next costume\n        wait (0.12) seconds\n    end\nend\n\nwhen I receive [instructions v]\nset [instructions v] to [1]\nshow\n\nwhen I receive [start the game v]\nset [instructions v] to [0]\n\nwhen [space v] key pressed\nif <(instructions) = [1]> then\n    broadcast (start the game v)\n    hide\n    set [instructions v] to [0]\nend\n\n@earth element\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen [x v] key pressed\nif <(Level) > [16]> then\n    if <(Earth Used?) = [No]> then\n        set [earth used? v] to [Yes]\n        set [go through ground v] to [True]\n        wait until <not <key (x v) pressed?>>\n        set [go through ground v] to [False]\n    end\nend\n\nwhen I receive [trajectory screen v]\nset [earth used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [restart v]\nset [earth used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [skip v]\nset [earth used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@Sun/Moon\n\nwhen I receive [play the platformer v]\nshow\ngo to [back v] layer\ngo to x: (250) y: (-150)\npoint in direction (-10)\nrepeat until <(Level) = [14]>\n    switch costume to (sun v)\n    set [time of day v] to [Day]\n    switch backdrop to (day v)\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        if <(Pause?) = [No]> then\n            move (1.2) steps\n            turn left (0.2) degrees\n            go to [back v] layer\n            Detect\n        end\n        Detect\n    end\n    switch costume to (moon v)\n    set [time of day v] to [Night]\n    switch backdrop to (night v)\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        if <(Pause?) = [No]> then\n            move (1.2) steps\n            turn left (0.2) degrees\n            go to [back v] layer\n            Detect\n        end\n        Detect\n    end\n    Detect\nend\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [play the platformer v]\ngo to [back v] layer\nshow\nwait until <(Level) = [14]>\nhide\nwait until <(Level) = [19]>\nshow\nwait until <(Level) = [37]>\nforever\n    switch costume to (moon v)\nend\n\nwhen I receive [particles back on v]\nshow\ngo to [back v] layer\ngo to x: (250) y: (-150)\npoint in direction (-10)\nrepeat until <(Level) = [14]>\n    switch costume to (sun v)\n    set [time of day v] to [Day]\n    switch backdrop to (day v)\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        if <(Pause?) = [No]> then\n            move (1.2) steps\n            turn left (0.2) degrees\n        end\n    end\n    switch costume to (moon v)\n    set [time of day v] to [Night]\n    switch backdrop to (night v)\n    go to x: (250) y: (-150)\n    point in direction (-10)\n    repeat (700)\n        if <(Pause?) = [No]> then\n            move (1.2) steps\n            turn left (0.2) degrees\n        end\n    end\n    if <(Level) = [27]> then\n        stop [this script v]\n    end\nend\n\nswitch backdrop to (day v)\n\ndefine Detect\nif <touching (water v)?> then\n    hide\nelse\n    show\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [play the platformer v]\nforever\n    if <<(Level) > [13]> and <(Level) < [19]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@water\n\nwhen I receive [play the platformer v]\ngo [forward v] (1) layers\nshow\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\nchange [allow touch v] by (1)\n\nwhen I receive [animation time =\) v]\nhide\n\n@music\n\nwhen flag clicked\nset [brightness v] effect to (100)\nset size to (150) %\ngo to x: (0) y: (-10000000000)\nhide\n\nwhen I receive [start the game v]\nset [hey.. you are not supposed to be showing! >:\( v] to [no]\nshow\nglide (0.7) secs to x: (0) y: (-50)\n\nwhen I receive [start the game v]\nrepeat (10)\n    change [brightness v] effect by (-10)\n    change size by (-5)\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n        if <(platformer of instructions on?) = [yes]> then\n            set [allow touch v] to [1]\n            broadcast (customize touch v)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [hey.. you are not supposed to be showing! >:\( v] to [yes]\nbroadcast (customize screen v)\n\nwhen I receive [customize screen v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [move into play screen v]\nforever\n    hide\nend\n\nwhen I receive [start the game v]\nset size to (150) %\nset [brightness v] effect to (100)\nset size to (150) %\nshow\n\nwhen I receive [animation time =\) v]\nhide\n\n@Buttons\n\ndefine setup back\ngo to [front v] layer\ngo [backward v] (4) layers\nswitch costume to (backward v)\nset size to (100) %\ngo to x: (-120) y: (0)\nshow\n\nwhen this sprite clicked\nif <(costume [name v]) = [forward]> then\n    start sound [Suction Cup v]\n    broadcast (+ v) and wait\nend\nif <(costume [name v]) = [backward]> then\n    start sound [Suction Cup v]\n    broadcast (- v) and wait\nend\n\nwhen flag clicked\nset size to (100) %\nhide\n\ndefine mousecode\nif <touching (mouse-pointer v)?> then\n    change size by (((100) - (size)) / (3))\n    set [ghost v] effect to (20)\n    point in direction (([sin v] of ((timer) * (1000)) ) + (90))\nelse\n    point in direction (90)\n    change size by (((75) - (size)) / (3))\n    set [ghost v] effect to (-10)\nend\n\ndefine setup forward\ngo to [front v] layer\ngo [backward v] (5) layers\nswitch costume to (forward v)\ngo to x: (120) y: (0)\nshow\n\nwhen I start as a clone\nsetup back\nrepeat until <(customise screen?) = [no]>\n    mousecode\nend\n\nwhen I receive [right v]\nsetup forward\nrepeat until <(customise screen?) = [no]>\n    mousecode\nend\n\ndefine code\nbroadcast (right v)\nbroadcast (left v)\n\nwhen I receive [left v]\ncreate clone of (_myself_ v)\n\nwhen I receive [customize screen v]\ncode\n\nwhen I receive [start the game v]\nrepeat (2)\n    delete this clone\nend\ndelete this clone\n\nwhen I receive [play the platformer v]\nrepeat (2)\n    delete this clone\nend\ndelete this clone\n\ndefine \n\nwhen I receive [start the game v]\nhide\ndelete this clone\n\nwhen I receive [start the game v]\nhide\ndelete this clone\n\nwhen I receive [animation time =\) v]\nhide\n\n@music chooser\n\nwhen I receive [animation time =\) v]\nhide\n\n@music choices\n\nwhen flag clicked\nset [customise screen? v] to [no]\ngo to x: (0) y: (100000000000000)\nhide\n\nwhen I receive [- v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [+ v]\nnext costume\n\nwhen I receive [customize screen v]\nset [customise screen? v] to [yes]\nset [platformer of instructions on? v] to [no]\nshow\nglide (0.7) secs to x: (0) y: (0)\nrepeat until <(customise screen?) = [no]>\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <(customise screen?) = [yes]> then\n            set [allow touch v] to [2]\n            broadcast (play the music? v)\n        end\n    else\n        point in direction (90)\n        change size by (((75) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen I receive [start the game v]\nset [customise screen? v] to [no]\ngo to x: (0) y: (100000000000000)\nhide\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    play sound [Vexento - Never Give Up v] until done\nend\nif <(costume [number v]) = [2]> then\n    play sound [Inferno v] until done\nend\nif <(costume [number v]) = [3]> then\n    play sound [venxeto - idk the name of the music v] until done\nend\nif <(costume [number v]) = [4]> then\n    play sound [DEAF KEV - Invincible \[NCS Release\]2 v] until done\nend\nif <(costume [number v]) = [5]> then\n    play sound [Avicii - Levels 2 \(1\)2 v] until done\nend\nif <(costume [number v]) = [6]> then\n    play sound [$RERW5ZB2 v] until done\nend\n\nwhen I receive [animation time =\) v]\nhide\n\n@done?\n\nwhen flag clicked\nset [song choice v] to []\nset [customise screen? v] to [no]\ngo to x: (160) y: (100000000000000)\nhide\n\nwhen I receive [customize screen v]\nset [customise screen? v] to [yes]\nset [platformer of instructions on? v] to [no]\nshow\nglide (0.7) secs to x: (160) y: (-130)\nrepeat until <(customise screen?) = [no]>\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <(customise screen?) = [yes]> then\n            set [allow touch v] to [2]\n            broadcast (done touch v)\n        end\n    else\n        point in direction (90)\n        change size by (((75) - (size)) / (3))\n        set [ghost v] effect to (-50)\n    end\nend\n\nwhen this sprite clicked\nif <([costume # v] of [music choices v]) = [1]> then\n    set [song choice v] to [never]\nend\nif <([costume # v] of [music choices v]) = [2]> then\n    set [song choice v] to [inferno]\nend\nif <([costume # v] of [music choices v]) = [3]> then\n    set [song choice v] to [don't know the name]\nend\nif <([costume # v] of [music choices v]) = [4]> then\n    set [song choice v] to [invincible]\nend\nif <([costume # v] of [music choices v]) = [5]> then\n    set [song choice v] to [levels]\nend\nif <([costume # v] of [music choices v]) = [6]> then\n    set [song choice v] to [nobody knows the name]\nend\n\nwhen I receive [start the game v]\ngo to x: (160) y: (100000000000000)\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@back button\n\nwhen flag clicked\nset size to (85) %\ngo to x: (-180) y: (-1000000000)\nhide\n\nwhen I receive [start the game v]\ngo to x: (-190) y: (-1000000000)\nhide\n\nwhen I receive [customize screen v]\nshow\nglide (1) secs to x: (-190) y: (130)\nrepeat until <(customise screen?) = [no]>\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <(customise screen?) = [yes]> then\n            set [allow touch v] to [2]\n            broadcast (back to the menu screen touch v)\n        end\n    else\n        point in direction (90)\n        change size by (((75) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen this sprite clicked\nset [customise screen? v] to [no]\nhide\nbroadcast (start the game v)\n\n@Fire element\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen [c v] key pressed\nif <(Level) > [32]> then\n    if <(Fire Used?) = [No]> then\n        wait until <not <key (c v) pressed?>>\n        set [fire used? v] to [Yes]\n    end\nend\n\nwhen I receive [trajectory screen v]\nset [fire used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [restart v]\nset [fire used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [skip v]\nset [fire used? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@confusion element\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen [c v] key pressed\nif <(Level) > [39]> then\n    if <(confusion used???) = [no]> then\n        wait (10) seconds\n        set [confusion used??? v] to [yes]\n    end\nend\n\nwhen I receive [trajectory screen v]\nset [confusion used??? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [restart v]\nset [confusion used??? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [skip v]\nset [confusion used??? v] to [No]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [animation time =\) v]\nhide\n\n@Rain\n\nwhen flag clicked\nhide\nforever\n    if <(Level) > [36]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to x: (pick random (-220) to (220)) y: (180)\nset [ghost v] effect to (pick random (75) to (90))\nshow\nrepeat until <(y position) < [-180]>\n    change y by (-5)\n    change x by (-1)\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen I receive [asgbqrw v]\ndelete this clone\n\nbroadcast (asgbqrw v)\n\nwhen I receive [animation time =\) v]\nhide\n\n@animation for the end\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [animation time =\) v]\nswitch costume to (costume1 v)\nshow\nrepeat until <(costume [number v]) = [39]>\n    next costume\n    wait (0.07) seconds\nend\nswitch costume to (costume40 v)\nwait (2.5) seconds\nswitch costume to (costume41 v)\nwait (2.5) seconds\nswitch costume to (costume42 v)\nwait (2.5) seconds\nswitch costume to (costume43 v)\nwait (2.5) seconds\nswitch costume to (costume44 v)\nwait (2.5) seconds\nswitch costume to (costume45 v)\nwait (2.5) seconds\nswitch costume to (costume46 v)\nwait (2.5) seconds\nforever\n    switch costume to (costume47 v)\nend\n\nwhen [timer v] > (0.01)\nhide\n\n
This is a collab between @viciousviper and\n@_NotAnyone\n\nAll instructions in-game\n\nTo use the 'Skip' button you have to die at least 10 times on a level