Deceit | A Platformer

Instructions: Welcome to Deceit | A Platformer!\n\n==================Controls==================\n\n1.  Arrow keys or WASD to move.\n2. Press the hint button to get a hint for the level. You have 3 hints.\n3. The grey hints show the dangers, platforms and instructions for the level.\n4. Press the Skip button to skip a level. You have 2 skips.\n5. Press the music button to choose a song.\n6. Press the play button to 'start'.

@Stage\n\nwhen flag clicked\nset [music v] to []\nswitch backdrop to (intro v)\n\nwhen I receive [start the platformer v]\nset [started? v] to [1]\nswitch backdrop to (hehe v)\nwait (1) seconds\nforever\n    if <(Music) = [1]> then\n        forever\n            play sound [Sunlight v] until done\n        end\n    else\n        if <(Music) = [2]> then\n            forever\n                play sound [Flash Funk \(Marshmello Remix\) v] until done\n            end\n        else\n            if <(Music) = [3]> then\n                forever\n                    play sound [Marshmello - Summer \(Official Music Video\) with Lele Pons.mp3 v] until done\n                end\n            else\n                if <(pick random (1) to (3)) = [1]> then\n                    forever\n                        play sound [Sunlight v] until done\n                    end\n                else\n                    if <(pick random (1) to (3)) = [2]> then\n                        forever\n                            play sound [Flash Funk \(Marshmello Remix\) v] until done\n                        end\n                    else\n                        if <(pick random (1) to (3)) = [3]> then\n                            forever\n                                play sound [Marshmello - Summer \(Official Music Video\) with Lele Pons.mp3 v] until done\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [13]> then\n        broadcast (You Won!! v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [home screen xd v]\nswitch backdrop to (home screen v)\n\nset [music v] to []\n\nwhen flag clicked\nset [started? v] to [0]\n\nwhen I receive [home screen xd v]\nrepeat until <(Started?) = [1]>\n    play sound [Pretty Music v] until done\nend\nstop all sounds\n\nwhen I receive [music home v]\nswitch backdrop to (music home screen v)\n\nset [hints left v] to [12]\n\nset volume to (100) %\n\nset volume to (0) %\n\n@Ground\n\nwhen flag clicked\nset [drawing level finished? v] to [1]\nhide\nswitch costume to (costume1 v)\ngo to x: (-2) y: (5)\ngo to [front v] layer\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\n    set [falling v] to [0]\n    set [speed y v] to [0]\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nset [time taken v] to [0]\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (Hide Next Level v)\n    end\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide variable [deaths v]\nhide variable [time taken v]\nhide\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [8]>> then\n        broadcast (Hide Fake Lava v)\n    else\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (hide teleports v)\n    end\nend\n\nwhen flag clicked\nset pen size to (10)\nerase all\nset pen color to (#767676)\n\nwhen flag clicked\nset [stop effects v] to [0]\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (Escape!! v)\n        set [stop effects v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (Acid Rain Residue coordinates Lv3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Acid Rain Residue Lv2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Acid Rain Residue Lv5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Acid Rain Residue Lv4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Acid Rain Residue Lv6 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (teleport 1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (guard v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (text v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset volume to (90) %\n\nwhen I receive [start the platformer v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    if <not <<<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>> or <(costume [number v]) = [1]>>> then\n        broadcast (Fire!!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (water v)\n    end\nend\n\nwhen I receive [start music again v]\nset volume to (100) %\n\nwhen I receive [stop music temporairily v]\nset volume to (0) %\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start the platformer v]\nforever\n    if <key (n v) pressed?> then\n        broadcast (Transition v)\n        broadcast (Next Level v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [next level v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (this one!3 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\nswitch costume to (this one!3 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [just start v]\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (Start the Platformer v)\n\nwhen I receive [end thumbnail v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nstop [all v]\n\n@Player?\n\nwhen I receive [next skin v]\nnext costume\nif <(costume [number v]) = [1]> then\n    next costume\nend\nset [skin v] to (costume [number v])\n\nwhen I receive [previous skin  v]\nswitch costume to ((costume [number v]) - (1))\nif <(costume [number v]) = [1]> then\n    switch costume to ((costume [number v]) - (1))\nend\nset [skin v] to (costume [number v])\n\nwhen flag clicked\nhide\nswitch costume to (green v)\n\nwhen flag clicked\nset [left/right? v] to [90]\nforever\n    if <(direction) = [-90]> then\n        set [left/right? v] to [-90]\n        broadcast (left v)\n    else\n        set [left/right? v] to [90]\n        broadcast (right v)\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    if <touching (bouncy v)?> then\n        set [player?: yv v] to [20]\n    end\nend\n\nwhen flag clicked\nset [success!? v] to [0]\nrepeat until <(Success!?) = [1]>\n    \n        broadcast (Success!!! v)\n        set [success!? v] to [1]\n    end\nend\nchange [☁ koalas saved v] by (1)\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        show\n        broadcast (Transition v)\n        show\n        go to x: (-210) y: (-33)\n        show\n        broadcast (Next Level v)\n        show\n    end\nend\n\nwhen flag clicked\nhide variable [deaths v]\nhide variable [time taken v]\n\nwhen I receive [start the platformer v]\nshow\ngo to x: (-210) y: (-33)\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\n\nwhen flag clicked\nswitch costume to (green v)\nforever\n    set rotation style [left-right v]\nend\n\nwhen flag clicked\nforever\n    if <touching (speeeeeeeed!!!!!!!!! v)?> then\n        change x by (30)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-206) y: (-33)\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen I start as a clone\nswitch costume to (clone trail v)\nset size to (35) %\nrepeat (10)\n    change size by (-3.5)\nend\ndelete this clone\n\nwhen I receive [start the platformer v]\nshow\nswitch costume to (green v)\nset rotation style [left-right v]\nset size to (35) %\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [player?: xv v] by (1)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [player?: xv v] by (-1)\n        point in direction (-90)\n    end\n    set [player?: xv v] to ((Player?: Xv) * (0.825))\n    change x by (Player?: Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Player?: Xv) * (-2))\n                            change y by (-5)\n                            if <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(Player?: Xv) > [0]> then\n                                    set [player?: xv v] to [-5]\n                                else\n                                    set [player?: xv v] to [5]\n                                end\n                                set [player?: yv v] to [10]\n                            else\n                                set [player?: xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player?: yv v] by (-1)\n    change y by (Player?: Yv)\n    if <touching (ground v)?> then\n        change y by ((Player?: Yv) * (-1))\n        set [player?: yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [player?: yv v] to [13]\n        end\n    end\n    if <<<<<<<touching (death v)?> or <touching (spike v)?>> or <touching (guard v)?>> or <touching (saw blade v)?>> or <touching (appearing/disappearing spikes v)?>> or <touching (fast crazy spikes v)?>> or <touching (fast crazy spikes2 v)?>> then\n        start sound [Cartoon punch sound effect2 v]\n        broadcast (I died... v)\n        wait (0.0001) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-210) y: (-33)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n        set [player?: xv v] to [0]\n    end\n    if <touching (teleport v)?> then\n        start sound [Teleport2 v]\n        wait (0.01) seconds\n        go to (teleport2 v)\n    end\n    change y by (1)\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\nbroadcast (blinkblinkblinkblink v)\nswitch costume to (green v)\n\nwhen I receive [blinkblinkblinkblink v]\nswitch costume to (green v)\nwait (pick random (5) to (15)) seconds\nrepeat (10)\n    next costume\nend\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [text v]\nhide\n\nwhen I receive [start the platformer v]\nswitch costume to (green v)\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [7]> then\n        if <(x position) > [30]> then\n            broadcast (Fast Crazy Spikes v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [i died... v]\nforever\n    if <(backdrop [number v]) = [7]> then\n        if <(x position) > [30]> then\n            broadcast (Fast Crazy Spikes v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [8]> then\n        if <(x position) > [0]> then\n            broadcast (Fast Crazy Spikes 2 v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [i died... v]\nforever\n    if <(backdrop [number v]) = [8]> then\n        if <(x position) > [30]> then\n            broadcast (Fast Crazy Spikes 2 v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(backdrop [number v]) = [10]> or <(backdrop [number v]) = [11]>> then\n        if <key (space v) pressed?> then\n            repeat until <not <<(backdrop [number v]) = [10]> or <(backdrop [number v]) = [11]>>>\n                set size to (15) %\n            end\n            set size to (35) %\n        end\n    end\nend\n\n\n\nif <(backdrop [number v]) = [11]> then\n    if <(x position) < [-250]> then\n        broadcast (Transition v)\n        go to x: (-210) y: (-33)\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (green v)\nset [double tap timer? v] to [0]\nforever\n    if <<(backdrop [number v]) = [9]> or <(backdrop [number v]) = [10]>> then\n        if <mouse down?> then\n            set [double tap timer? v] to [0]\n            wait until <not <mouse down?>>\n            if <(double tap timer?) < [0.3]> then\n                wait until <mouse down?>\n                if <(double tap timer?) < [0.6]> then\n                    repeat until <not <<(backdrop [number v]) = [9]> or <(backdrop [number v]) = [10]>>>\n                        set size to (15) %\n                    end\n                    set size to (35) %\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    change [double tap timer? v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [next level v]\nrepeat (35)\n    show\n    wait (0.01) seconds\nend\n\n@Death\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [success!!! v]\nhide\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [text v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nrepeat until <(end intro?) = [1]>\n    create clone of (_myself_ v)\n    wait (.3) seconds\nend\n\nwhen I start as a clone\nswitch costume to (blank v)\nset [speed3 v] to [10]\nset [ghost v] effect to (15)\nset size to (100) %\ngo to x: (0) y: (0)\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\nrepeat (10)\n    change size by (Speed3)\n    change [speed3 v] by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nset rotation style [all around v]\nforever\n    turn right (15) degrees\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nrepeat until <(end intro?) = [1]>\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(pick random (1) to (3)) = [1]> then\n    switch costume to (red v)\nelse\n    if <(pick random (1) to (3)) = [2]> then\n        switch costume to (yellow v)\n    else\n        if <(pick random (1) to (3)) = [3]> then\n            switch costume to (blue v)\n        end\n    end\nend\nset [ghost v] effect to (30)\ngo to x: (0) y: (0)\nset rotation style [all around v]\nshow\npoint in direction (pick random (0) to (360))\nrepeat (16)\n    move (10) steps\nend\ndelete this clone\n\nwhen flag clicked\nset [end intro? v] to [0]\nwait (7.5) seconds\nset [end intro? v] to [1]\nstop all sounds\nwait (1) seconds\nbroadcast (Home Screen xD v)\n\nwhen [timer v] > (0.4)\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nshow\ngo to [front v] layer\npoint in direction (90)\nswitch costume to (untitled drawing \(28\) v)\nset size to (100) %\nrepeat until <(end intro?) = [1]>\n    set [speed v] to [-10]\n    repeat (20)\n        change size by (Speed)\n        change [speed v] by (1)\n    end\n    set size to (100) %\nend\nhide\n\nwhen flag clicked\nstart sound [TheFatRat - Infinite Power!2 v]\n\nwhen [timer v] > (0.4)\nhide\n\n@Spike\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nshow\n\n@Teleport2\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\ngo to [front v] layer\nset [whirl v] effect to (500)\nforever\n    turn right (15) degrees\nend\n\nwhen I receive [teleport 1 v]\n\nshow\ngo to x: (220) y: (160)\n\nwhen I receive [hide teleports v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@Awesome Skull Particles\n\nwhen I start as a clone\nset size to (pick random (20) to (50)) %\ngo to [front v] layer\nclear graphic effects\nshow\nset [myvar v] to (pick random (100) to (200))\nrepeat (myVar)\n    change y by ((myVar) / (50))\n    change [ghost v] effect by ((100) / (myVar))\n    change [color v] effect by ((25) / (myVar))\n    if <[179] < (y position)> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [home screen xd v]\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    wait (1) seconds\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Skip\n\nwhen flag clicked\ngo to x: (-222) y: (162)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nset [skips left v] to [2]\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen this sprite clicked\nif <(Skips Left) > [0]> then\n    show\n    change [skips left v] by (-1)\n    wait (0.01) seconds\n    broadcast (Next Level v)\n    wait (0.1) seconds\nelse\n    broadcast (Nope. Out of Skips v)\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [you won!! v]\nhide\n\nset [hints left v] to [55]\n\n@Awesome Skull Particles2\n\nwhen I start as a clone\nset size to (pick random (20) to (50)) %\ngo to [back v] layer\nclear graphic effects\nshow\nset [myvar v] to (pick random (100) to (200))\nrepeat (myVar)\n    change y by ((myVar) / (50))\n    change [ghost v] effect by ((100) / (myVar))\n    change [color v] effect by ((25) / (myVar))\n    if <[179] < (y position)> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [home screen xd v]\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    wait (1) seconds\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Hint\n\nwhen flag clicked\ngo to x: (-185) y: (162)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen this sprite clicked\nbroadcast (Hint? v)\nwait (0.1) seconds\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [you won!! v]\nhide\n\n@Hint Enabled?\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nset [hints left v] to [3]\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [hint? v]\nif <(Hints Left) > [0]> then\n    show\n    change [hints left v] by (-1)\n    wait (0.01) seconds\n    if <(backdrop [number v]) = [3]> then\n        switch costume to (costume1 v)\n        wait (2) seconds\n        hide\n    else\n        if <(backdrop [number v]) = [4]> then\n            switch costume to (costume2 v)\n            wait (2) seconds\n            hide\n        else\n            if <(backdrop [number v]) = [5]> then\n                switch costume to (costume3 v)\n                wait (2) seconds\n                hide\n            else\n                if <(backdrop [number v]) = [6]> then\n                    switch costume to (costume4 v)\n                    wait (2) seconds\n                    hide\n                else\n                    if <(backdrop [number v]) = [7]> then\n                        switch costume to (costume5 v)\n                        wait (2) seconds\n                        hide\n                    else\n                        if <(backdrop [number v]) = [8]> then\n                            switch costume to (costume7 v)\n                            wait (2) seconds\n                            hide\n                        else\n                            if <(backdrop [number v]) = [9]> then\n                                switch costume to (costume8 v)\n                                wait (2) seconds\n                                hide\n                            else\n                                if <(backdrop [number v]) = [10]> then\n                                    switch costume to (costume9 v)\n                                    wait (2) seconds\n                                    hide\n                                else\n                                    if <(backdrop [number v]) = [11]> then\n                                        switch costume to (costume10 v)\n                                        wait (2) seconds\n                                        hide\n                                    else\n                                        if <(backdrop [number v]) = [12]> then\n                                            switch costume to (costume10 v)\n                                            wait (2) seconds\n                                            hide\n                                        else\n                                            if <(backdrop [number v]) = [13]> then\n                                                switch costume to (costume8 v)\n                                                wait (2) seconds\n                                                hide\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nelse\n    broadcast (Nope. Out of Hints v)\nend\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (40)\nend\n\nshow\n\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nset [skips left v] to [55]\nset [hints left v] to [55]\n\n@Appearing/Disappearing Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [6]> then\n        if <touching (player? v)?> then\n            show\n            set [ghost v] effect to (0)\n        else\n            hide\n            set [ghost v] effect to (100)\n        end\n    else\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Awesome transition\n\nwhen I receive [text v]\nhide\n\nwhen I receive [next level v]\nshow\nrepeat (48)\n    switch costume to ((costume [number v]) - (1))\nend\nwait (0.1) seconds\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@Fast Crazy Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nhide\n\nforever\n    if <(backdrop [number v]) = [7]> then\nend\n\nforever\n    if <(backdrop [number v]) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [fast crazy spikes v]\nswitch costume to (1 v)\nshow\ngo to x: (100) y: (185)\nglide (1) secs to x: (100) y: (-185)\nhide\n\nwhen I receive [fast crazy spikes 2 v]\nswitch costume to (2 v)\nshow\ngo to x: (-245) y: (-90)\nglide (1) secs to x: (245) y: (-90)\nhide\n\n@Fast Crazy Spikes2\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nhide\n\nforever\n    if <(backdrop [number v]) = [7]> then\nend\n\nforever\n    if <(backdrop [number v]) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [fast crazy spikes 2 v]\nswitch costume to (2 v)\nshow\ngo to x: (245) y: (-90)\nglide (1) secs to x: (-245) y: (-90)\nhide\n\n@Yo got trolled!\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [i died... v]\nif <(pick random (1) to (2)) = [1]> then\n    switch costume to (trolled v)\nelse\n    if <(pick random (1) to (2)) = [2]> then\n        switch costume to (oh, the deceit  v)\n    end\nend\nshow\nwait (1) seconds\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@You won! (Heart)\n\nwhen I receive [you won!! v]\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (20)))\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\n@You won! (Heart)2\n\nwhen I receive [you won!! v]\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (20)))\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen [timer v] > (0.4)\nhide\n\nbroadcast (You Won!! v)\n\nwhen flag clicked\nhide\n\n@You won! (Heart)3\n\nwhen I receive [you won!! v]\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (20)))\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\n@'Start Button'\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen this sprite clicked\nbroadcast (Ha! Wrong Start Button! v)\nwait (0.01) seconds\nhide\n\nwhen I receive [home screen xd v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nglide (1) secs to x: (0) y: (110)\n\n@xD\n\nwhen I receive [home screen xd v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (hehe xd v)\n    else\n        switch costume to (deceit | a platformer \(better logo\) v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [home screen xd v]\nshow\n\nset [brightness v] effect to (-20)\n\nset [brightness v] effect to (0)\n\nswitch backdrop to (hehe10 v)\n\nwhen I receive [music home v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\n@'Hint Button'\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen this sprite clicked\nbroadcast (Ha! Wrong Start Button! v)\nwait (0.01) seconds\n\nwhen I receive [home screen xd v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [home screen xd v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (haha v)\n    else\n        switch costume to (? v)\n    end\nend\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@'Music Button'\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen this sprite clicked\nbroadcast (Music Home v)\nwait (0.01) seconds\n\nwhen I receive [home screen xd v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Marshmello - Flash Funk\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [music home v]\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (Home Screen xD v)\nset [music v] to [2]\n\nwhen I receive [home screen xd v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\n@Marshmello - Flash Funk2\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [music home v]\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (Home Screen xD v)\nset [music v] to [3]\n\nwhen I receive [home screen xd v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\n@TheFatRat - Sunlight\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [music home v]\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (Home Screen xD v)\nset [music v] to [1]\n\nwhen I receive [home screen xd v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [ha! wrong start button! v]\nhide\n\n@'Start Button'2\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [home screen xd v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen I receive [ha! wrong start button! v]\nswitch costume to (costume1 v)\ngo to ('start button' v)\nshow\nglide (1) secs to x: (0) y: (110)\nwait (1) seconds\nswitch costume to (costume2 v)\nwait (2.5) seconds\nswitch costume to (costume3 v)\nwait (2.5) seconds\nswitch costume to (costume4 v)\nwait (2.5) seconds\nswitch costume to (costume5 v)\nwait (2.5) seconds\nswitch costume to (costume6 v)\nwait (2.5) seconds\nswitch costume to (costume7 v)\nwait (1) seconds\nstart sound [pop v]\nhide\nwait (1) seconds\nbroadcast (New Real Button! v)\n\n@Real Nice Start Button\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen I receive [new real button! v]\nswitch costume to (costume1 v)\ngo to x: (240) y: (22)\nshow\nwait (1) seconds\nglide (1) secs to x: (0) y: (0)\nwait (1) seconds\nswitch costume to (costume2 v)\nwait (2.5) seconds\nswitch costume to (costume3 v)\nwait (2.5) seconds\nswitch costume to (costume4 v)\nwait (2.5) seconds\nbroadcast (Clicky Button v)\nwait (0.01) seconds\nhide\n\n@Clicky Button\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen this sprite clicked\nbroadcast (Start the Platformer v)\nwait (0.01) seconds\nhide\n\nwhen I receive [clicky button v]\ngo to (real nice start button v)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [music home v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n