Good vs Evil | A Platformer (Mobile Friendly)

Instructions: Welcome to my best platformer ever!! :D\n----------------------------------------------------------------\nYou can in this game:\n• Choose two different paths and styles of game! :D\n• Buy skins from a shop\n• Earn Achievements and in-game money! :DD\n• Turn buttons and music on/off\n• Love and fav this project! lol xD\n\n----------------------------Controls---------------------------\n\n• Arrow keys or WASD to move.\n• At the beginning press the play button and choose you path and mobile or pc controls.\n• Press the Arrow Button to skip a level.\n• Press the Restart Button to restart the level if it glitches. (Which it shouldn't)\n• Press the button at the end of the platformer to go to the home screen and play it again from the other side's point of view. (You will keep your in-game money)\n• Click the green flag again if buttons show or the achievement thing pulls up. :P

@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (intro v)\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    switch backdrop to (lava background v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        switch backdrop to (sky background v)\n    end\nend\n\nwhen I receive [start home screen v]\nswitch backdrop to (home screen v)\n\nwhen I receive [choose your side v]\nswitch backdrop to (choose your side v)\n\nwhen I receive [mobile or pc? v]\nswitch backdrop to (mobile or pc? v)\n\nwhen I receive [start the platformer v]\nstop all sounds\nif <(Evil/Good?) = [Good]> then\n    forever\n        play sound [Sunlight v] until done\n    end\nelse\n    forever\n        play sound [best dramatic music ever!! v] until done\n    end\nend\n\nwhen I receive [choose your shop side v]\nswitch backdrop to (choose your side v)\n\nwhen I receive [show the blooming text again v]\nswitch backdrop to (home screen v)\n\nwhen I receive [turn music off v]\nrepeat (10)\n    change volume by (-10)\nend\nset volume to (0) %\n\nwhen I receive [turn music on v]\nrepeat (10)\n    change volume by (10)\nend\nset volume to (100) %\n\nwhen flag clicked\nwait (1) seconds\nset [evil/good? v] to []\n\nset [evil/good? v] to []\n\nswitch backdrop to (thumbnail v)\n\n@Intro 1\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nforever\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\nwhen flag clicked\nforever\n    if <(end intro?) = [1]> then\n        forever\n            stop [other scripts in sprite v]\n        end\n    end\nend\n\n@Intro 2\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 (Start home screen v)\n\nwhen [timer v] > (0.4)\nhide\n\n@Intro 3\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@Player?\n\nwhen I start as a clone\nset rotation style [all around v]\nrepeat (40)\n    turn right (15) degrees\n    change y by (10)\n    change [ghost v] effect by (2.5)\nend\nset [ghost v] effect to (0)\nhide\ndelete this clone\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\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 (le bouncy v)?> or <touching (le bouncy2 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)\nforever\n    hide\nend\n\nwhen I receive [success!!! v]\nforever\n    hide\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        change [cash v] by (10)\n        wait (0.01) seconds\n        broadcast (Transition v)\n        go to x: (-200) y: (-33)\n        broadcast (Next Level v)\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: (-200) y: (-33)\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\n\nwhen flag clicked\nhide\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: (-200) y: (-33)\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen I start as a clone\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil default v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        switch costume to (good default v)\n    end\nend\nif <(PC or Mobile?) = [PC]> then\n    show\n    set rotation style [left-right v]\n    set size to (15) %\n    set [player?: xv v] to [0]\n    set [player?: yv v] to [0]\n    forever\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> 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?>> 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 <<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?>> then\n                set [player?: yv v] to [13]\n            end\n        end\n        if  then\n            set [ghost v] effect to (0)\n            create clone of (_myself_ v)\n            wait (0.01) seconds\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            set [ghost v] effect to (0)\n            go to x: (-200) 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        change y by (1)\n    end\nelse\n    if <(Evil/Good?) = [Evil]> then\n        switch costume to (evil default v)\n    else\n        if <(Evil/Good?) = [Good]> then\n            switch costume to (good default v)\n        end\n    end\n    if <(PC or Mobile?) = [Mobile]> then\n        show\n        set rotation style [left-right v]\n        set size to (15) %\n        set [player?: xv v] to [0]\n        set [player?: yv v] to [0]\n        forever\n            if <<mouse down?> and <(mouse x) > (x position)>> then\n                change [player?: xv v] by (1)\n                point in direction (90)\n            end\n            if <<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)>> 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 <<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 (water v)?>> or <touching (lava v)?>> or <touching (acid rain residue4 v)?>> then\n                set [ghost v] effect to (0)\n                create clone of (_myself_ v)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                set [ghost v] effect to (0)\n                go to x: (-200) 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            change y by (1)\n        end\n    end\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen I receive [previous coustume v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [back from menu v]\nshow\n\nwhen flag clicked\nforever\n    if <(Skin Bought/Chosen) = [Blue]> then\n        switch costume to (blue skin v)\n    else\n        if <(Skin Bought/Chosen) = [Green]> then\n            switch costume to (green skin v)\n        else\n            if <(Skin Bought/Chosen) = [Red]> then\n                switch costume to (red skin v)\n            else\n                if <(Skin Bought/Chosen) = [Gold]> then\n                    switch costume to (gold skin v)\n                else\n                    if <(Skin Bought/Chosen) = [Pink]> then\n                        switch costume to (pink skin v)\n                    else\n                        if <(Skin Bought/Chosen) = [cheekyscuola]> then\n                            switch costume to (cheekyscuola skin v)\n                        else\n                            if <(Skin Bought/Chosen) = [levi_minecraft]> then\n                                switch costume to (levi_minecraft skin v)\n                            else\n                                if <(Skin Bought/Chosen) = [duoof]> then\n                                    switch costume to (duoof skin v)\n                                else\n                                    if <(Skin Bought/Chosen) = [Sunny Day]> then\n                                        switch costume to (sunny day skin v)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen I receive [back from menu v]\nset [ghost v] effect to (100)\nrepeat (10)\n    set y to (-120)\nend\nset [ghost v] effect to (0)\nset y to (-84)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        change [player?: yv v] by (2)\n    end\nend\n\nswitch costume to (clone trail v)\nset size to (35) %\nrepeat (10)\n    change size by (-3.5)\nend\ndelete this clone\n\ndefine Dead/Restart\nset [ghost v] effect to (0)\ncreate clone of (_myself_ v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\ngo to x: (-200) y: (-33)\nset [player?: xv v] to [0]\n\nwhen I receive [restart v]\nDead/Restart\n\nwhen I receive [settings v]\nif <(Is Settings Open?) = [Yes]> then\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [back from da settings v]\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <<(Home Screen?) = [No]> and <<not <(Evil/Good?) = []>> and <not <(PC or Mobile?) = []>>>> then\n        show\n    else\n        hide\n    end\nend\n\n@Ground\n\nwhen flag clicked\nset [drawing level finished? v] to [1]\nhide\nswitch costume to (random land 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]) = [11]> then\n        broadcast (Hide Infected Water 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]) = [7]> then\n        broadcast (Show Speeeeeeeed!!!!! v)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\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]) = [10]> then\n        broadcast (Show move platform v)\n    end\nend\n\nwhen flag clicked\nset volume to (90) %\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil lvl 1 v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        switch costume to (good lvl 1 v)\n    end\nend\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\nbroadcast (Start the Platformer v)\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 flag clicked\nforever\n\n\n\nbroadcast (Acid Rain Residue coordinates Lv3 v)\n\nwhen I receive [good skin shop v]\nset [ghost v] effect to (100)\n\nwhen I receive [evil skin shop v]\nset [ghost v] effect to (100)\n\nwhen I receive [hide shop v]\nset [ghost v] effect to (0)\n\nwhen I receive [show tasks v]\nset [ghost v] effect to (100)\n\nwhen I receive [hide tasks v]\nset [ghost v] effect to (0)\n\nwhen flag clicked\nswitch costume to (random land v)\nset [level of game :p v] to [0]\nforever\n    if <<(costume [number v]) = [1]> or <(costume [number v]) = [23]>> then\n        set [level of game :p v] to [1]\n    else\n        if <<(costume [number v]) = [2]> or <(costume [number v]) = [24]>> then\n            set [level of game :p v] to [2]\n        else\n            if <<(costume [number v]) = [3]> or <(costume [number v]) = [25]>> then\n                set [level of game :p v] to [3]\n            else\n                if <<(costume [number v]) = [4]> or <(costume [number v]) = [26]>> then\n                    set [level of game :p v] to [4]\n                else\n                    if <<(costume [number v]) = [5]> or <(costume [number v]) = [27]>> then\n                        set [level of game :p v] to [5]\n                    else\n                        if <<(costume [number v]) = [6]> or <(costume [number v]) = [28]>> then\n                            set [level of game :p v] to [6]\n                        else\n                            if <<(costume [number v]) = [7]> or <(costume [number v]) = [29]>> then\n                                set [level of game :p v] to [7]\n                            else\n                                if <<(costume [number v]) = [8]> or <(costume [number v]) = [30]>> then\n                                    set [level of game :p v] to [8]\n                                else\n                                    if <<(costume [number v]) = [9]> or <(costume [number v]) = [31]>> then\n                                        set [level of game :p v] to [9]\n                                    else\n                                        if <<(costume [number v]) = [10]> or <(costume [number v]) = [32]>> then\n                                            set [level of game :p v] to [10]\n                                        else\n                                            if <<(costume [number v]) = [11]> or <(costume [number v]) = [33]>> then\n                                                set [level of game :p v] to [11]\n                                            else\n                                                if <<(costume [number v]) = [12]> or <(costume [number v]) = [34]>> then\n                                                    set [level of game :p v] to [12]\n                                                else\n                                                    if <<(costume [number v]) = [13]> or <(costume [number v]) = [35]>> then\n                                                        set [level of game :p v] to [13]\n                                                    else\n                                                        if <<(costume [number v]) = [14]> or <(costume [number v]) = [36]>> then\n                                                            set [level of game :p v] to [14]\n                                                        else\n                                                            if <<(costume [number v]) = [15]> or <(costume [number v]) = [37]>> then\n                                                                set [level of game :p v] to [15]\n                                                            else\n                                                                if <<(costume [number v]) = [16]> or <(costume [number v]) = [38]>> then\n                                                                    set [level of game :p v] to [16]\n                                                                else\n                                                                    if <<(costume [number v]) = [17]> or <(costume [number v]) = [39]>> then\n                                                                        set [level of game :p v] to [17]\n                                                                    else\n                                                                        if <<(costume [number v]) = [18]> or <(costume [number v]) = [40]>> then\n                                                                            set [level of game :p v] to [18]\n                                                                        else\n                                                                            if <<(costume [number v]) = [19]> or <(costume [number v]) = [41]>> then\n                                                                                set [level of game :p v] to [19]\n                                                                            else\n                                                                                if <<(costume [number v]) = [20]> or <(costume [number v]) = [42]>> then\n                                                                                    set [level of game :p v] to [20]\n                                                                                else\n                                                                                    if <<(costume [number v]) = [21]> or <(costume [number v]) = [43]>> then\n                                                                                        set [level of game :p v] to [21]\n                                                                                    else\n                                                                                        if <<(costume [number v]) = [22]> or <(costume [number v]) = [44]>> then\n                                                                                            set [level of game :p v] to [22]\n                                                                                        else\n                                                                                            set [level of game :p v] to [0]\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level of game :P) = [5]> or <(Level of game :P) = [25]>> then\n        broadcast (level 5 passed v)\n        forever\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level of game :P) = [10]> or <(Level of game :P) = [30]>> then\n        broadcast (level 10 passed v)\n        forever\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level of game :P) = [15]> or <(Level of game :P) = [35]>> then\n        broadcast (level 15 passed v)\n        forever\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level of game :P) = [22]> or <(Level of game :P) = [44]>> then\n        broadcast (complete the platformer v)\n        forever\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Evil/Good?) = [Good]> then\n        broadcast (da good side has been chosen v)\n        forever\n            stop [this script v]\n        end\n    else\n        if <(Evil/Good?) = [Evil]> then\n            broadcast (da evil side has been chosen v)\n            forever\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [start home screen v]\nswitch costume to (random land v)\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@Branding\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [mobile? v]\nhide\n\nwhen I receive [start home screen v]\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (10)))\nend\n\nwhen I receive [start home screen v]\nstart sound [Fortnite - Original Main Menu Music \[Theme OST VGM Soundtrack\].mp3 v]\ngo to x: (11) y: (-50)\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start home screen v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [back from menu v]\nhide\n\nwhen I receive [show the blooming text again v]\nshow\n\nwhen I receive [choose your shop side v]\nhide\n\nwhen I receive [evil skin shop v]\nhide\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nshow\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nshow\n\n@Play\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nplay sound [hoverSFX v] until done\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start home screen v]\nshow\n\nwhen I receive [start the platformer v]\nshow\n\nwhen flag clicked\ngo to x: (0) y: (-80)\nhide\n\nwhen I receive [start home screen v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Good/Evil Side Chosen?) = [1]> then\n    hide\n    broadcast (mobile or pc? v)\nelse\n    hide\n    broadcast (choose your side v)\nend\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [back from menu v]\nhide\n\nwhen I receive [choose your shop side v]\nhide\n\nwhen I receive [show the blooming text again v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [evil skin shop v]\nhide\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nif <(menu back/forward) = [Back]> then\n    hide\nelse\n    show\nend\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nshow\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [Yes]> then\n    hide\nelse\n    show\nend\n\n@Shop\n\nwhen flag clicked\ngo to x: (100) y: (-80)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start home screen v]\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start home screen v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [back from menu v]\nhide\n\nwhen this sprite clicked\nset [shop? v] to [Show]\nbroadcast (Good Skin Shop v)\n\nif <(Evil/Good?) = [Evil]> then\n    broadcast (Evil Skin Shop v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        broadcast (Good Skin Shop v)\n    else\n        set [good/evil side chosen? v] to [1]\n        broadcast (choose your shop side v)\n    end\nend\n\nwhen I receive [choose your shop side v]\nhide\n\nwhen I receive [show the blooming text again v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [evil skin shop v]\nhide\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nshow\n\nwhen flag clicked\nset [good/evil side chosen? v] to []\n\nwhen I receive [mobile or pc? v]\nhide\n\nset [good/evil side chosen? v] to []\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nplay sound [hoverSFX v] until done\n\n@Tasks\n\nwhen flag clicked\nset [tasks? v] to []\ngo to x: (-100) y: (-80)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [start home screen v]\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start home screen v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [back from menu v]\nhide\n\nwhen I receive [choose your shop side v]\nhide\n\nwhen I receive [show the blooming text again v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [evil skin shop v]\nhide\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nshow\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen this sprite clicked\nset [tasks? v] to [Show]\nbroadcast (Show Tasks v)\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nplay sound [hoverSFX v] until done\n\n@Mobile?\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nset [pc or mobile? v] to []\nset [evil/good? v] to []\nhide\ngo to x: (-97) y: (-20)\n\nwhen I receive [mobile or pc? v]\nshow\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [pc or mobile? v] to [Mobile]\nbroadcast (Start the Platformer v)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@PC?\n\nwhen flag clicked\nhide\ngo to x: (97) y: (-20)\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [choose your side v]\nhide\n\nwhen I receive [mobile or pc? v]\nshow\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [pc or mobile? v] to [PC]\nhide\nbroadcast (Start the Platformer v)\ncreate clone of (sun v)\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Good Side\n\nwhen I receive [choose your side v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (-97) y: (-20)\n\nwhen this sprite clicked\nhide\nbroadcast (mobile or pc? v)\nset [evil/good? v] to [Good]\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Evil Side\n\nwhen I receive [choose your side v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (97) y: (-20)\n\nwhen this sprite clicked\nhide\nbroadcast (mobile or pc? v)\nset [evil/good? v] to [Evil]\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Menu\n\nwhen flag clicked\nset [is game menu is? v] to []\ngo to x: (-210) y: (150)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start home screen v]\nset [is game menu is? v] to [No]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [is game menu is? v] to [Yes]\nif <(menu back/forward) = [forward]> then\n    broadcast (menu v)\n    set [menu back/forward v] to [back]\n    set [is game menu is? v] to [Yes]\nelse\n    broadcast (back from menu v)\n    set [menu back/forward v] to [forward]\n    set [is game menu is? v] to [No]\nend\n\nwhen flag clicked\nset [menu back/forward v] to []\nforever\n    go to [front v] layer\nend\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nbroadcast (menu v)\nset [menu back/forward v] to [back]\n\nbroadcast (back from menu v)\nset [menu back/forward v] to [forward]\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nset [cash v] to [500]\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if  then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <<(On/Off 1) = [1]> and <<<(Is Settings Open?) = [Yes]> and <not <(Tasks?) = [Show]>>> and <<not <(Home Screen?) = [Yes]>> and <not <(Shop?) = [Show]>>>>> then\n        show\n    else\n        if <<(On/Off 1) = [0]> or <<(Shop?) = [Show]> or <<(Tasks?) = [Show]> or <<(Home Screen?) = [Yes]> or <(Is Settings Open?) = [Yes]>>>>> then\n            hide\n        end\n    end\nend\n\nset [cash v] to [100]\n\n@Skip\n\nwhen flag clicked\nset [is game menu is? v] to []\ngo to x: (-138) y: (150)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start home screen v]\nset [is game menu is? v] to [No]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(username) = [cheekyscuola]> then\n    broadcast (Next Level v)\n    wait (0.01) seconds\nelse\n    broadcast (Permission to Skip? v) and wait\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nhide\n\nbroadcast (menu v)\nset [menu back/forward v] to [back]\n\nbroadcast (back from menu v)\nset [menu back/forward v] to [forward]\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [back from menu v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nbroadcast (Button Sound Effect duh v)\n\nhide\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start the platformer v]\nforever\n    if <<<(On/Off 1) = [1]> and <(Is Settings Open?) = [Yes]>> and <<not <(Home Screen?) = [Yes]>> and <not <(is game menu is?) = [Yes]>>>> then\n        show\n    else\n        if <<(On/Off 1) = [0]> or <<(Is Settings Open?) = [No]> or <<(Home Screen?) = [Yes]> or <(is game menu is?) = [Yes]>>>> then\n            hide\n        end\n    end\nend\n\nask [Skiping a level will cost you £30. Are you sure that you want to skip this level? \(Type YES or NO\)] and wait\n\n@Restart\n\nwhen flag clicked\nset [is game menu is? v] to []\ngo to x: (-66) y: (150)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start home screen v]\nset [is game menu is? v] to [No]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Restart v)\nwait (0.01) seconds\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nhide\n\nif <(is game menu is?) = [Yes]> then\n    show\nelse\nend\n\nbroadcast (menu v)\nset [menu back/forward v] to [back]\n\nbroadcast (back from menu v)\nset [menu back/forward v] to [forward]\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [back from menu v]\nshow\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start the platformer v]\nforever\n    if <<<(On/Off 1) = [1]> and <(Is Settings Open?) = [Yes]>> and <<not <(Home Screen?) = [Yes]>> and <not <(is game menu is?) = [Yes]>>>> then\n        show\n    else\n        if <<(On/Off 1) = [0]> or <<(Is Settings Open?) = [No]> or <<(Home Screen?) = [Yes]> or <(is game menu is?) = [Yes]>>>> then\n            hide\n        end\n    end\nend\n\n@Gui\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    Sense\nend\n\ndefine Sense\nswitch costume to (sense v)\nshow\nset [ghost v] effect to (20)\ngo to [front v] layer\nif <touching (play v)?> then\n    switch costume to (play v)\nelse\n    if <touching (tasks v)?> then\n        switch costume to (tasks v)\n    else\n        if <touching (shop v)?> then\n            switch costume to (shop v)\n        else\n            if <touching (menu v)?> then\n                switch costume to (menu v)\n            else\n                if <touching (vexento - empty v)?> then\n                    switch costume to (vexento - empty v)\n                else\n                    if <touching (lights \[dream trance\] v)?> then\n                        switch costume to (lights \[dream trance\] v)\n                    else\n                        if <touching (random v)?> then\n                            switch costume to (random v)\n                        else\n                            if <touching (back button v)?> then\n                                switch costume to (back v)\n                            else\n                                if <touching (marshmello - alone v)?> then\n                                    switch costume to (marshmello - alone v)\n                                else\n                                    if <touching (thefatrat - windfall v)?> then\n                                        switch costume to (thefatrat - windfall  v)\n                                    else\n                                        if <<touching (?? v)?> or <touching (??? v)?>> then\n                                            switch costume to (??? v)\n                                        else\n                                            if <touching (disfigure - blank v)?> then\n                                                switch costume to (disfigure - blank v)\n                                            else\n                                                if <touching (thefatrat - time lapse v)?> then\n                                                    switch costume to (thefatrat - time lapse v)\n                                                else\n                                                    if <touching (vexento - we are one v)?> then\n                                                        switch costume to (vexento - we are one v)\n                                                    else\n                                                        if <touching (revenge v)?> then\n                                                            switch costume to (revenge v)\n                                                        else\n                                                            if <touching (vexento - pegasus v)?> then\n                                                                switch costume to (vexento - pegasus v)\n                                                            else\n                                                                if <touching (never gonna give you up v)?> then\n                                                                    switch costume to (never gonna give you up v)\n                                                                else\n                                                                    if <touching (avicii - levels v)?> then\n                                                                        switch costume to (avicii - levels v)\n                                                                    else\n                                                                        if <<touching (cloud v)?> and <(Random variable1) = [0]>> then\n                                                                            switch costume to (highscore v)\n                                                                        else\n                                                                            if <<touching (instructions v)?> and <(Random variable2) = [0]>> then\n                                                                                switch costume to (instructions v)\n                                                                            else\n                                                                                if <touching (costume selection v)?> then\n                                                                                    switch costume to (costume selection v)\n                                                                                else\n                                                                                    if <(LOL variable) = [1]> then\n                                                                                        go to [front v] layer\n                                                                                        switch costume to (resume v)\n                                                                                    else\n                                                                                        if <<touching (pause/play button v)?> and <([costume # v] of [pause/play button v]) = [1]>> then\n                                                                                            switch costume to (pause v)\n                                                                                        else\n                                                                                            hide\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\nwhen I receive [menu v]\nforever\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\nwhen I receive [start home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\n@Clouds\n\nwhen I start as a clone\nif <not <(Home Screen?) = [Yes]>> then\n    go [backward v] (pick random (10) to (20)) layers\n    go to x: (190) y: (pick random (-90) to (190))\n    set [ghost v] effect to (pick random (50) to (90))\n    set size to (pick random (100) to (300)) %\n    show\n    set [cloud speed v] to ((size) / (120))\n    repeat until <[-240] > (x position)>\n        change x by ((Cloud Speed) / (-1))\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Good]> then\n    forever\n        wait (0.7) seconds\n        create clone of (_myself_ v)\n    end\nelse\n    hide\nend\n\n@Awesome Particles\n\nwhen I start as a clone\nif <not <(Home Screen?) = [Yes]>> then\n    set [ghost v] effect to (65)\n    go to [back v] layer\n    show\n    if <(size) > [99]> then\n        glide (4) secs to x: (x position) y: (200)\n        delete this clone\n    end\n    if <(size) > [80]> then\n        glide (3) secs to x: (x position) y: (200)\n        delete this clone\n    end\n    if <(size) > [65]> then\n        glide (2) secs to x: (x position) y: (200)\n        delete this clone\n    end\n    if <(size) > [50]> then\n        glide (1.5) secs to x: (x position) y: (200)\n        delete this clone\n    end\n    if <(size) > [40]> then\n        glide (1) secs to x: (x position) y: (200)\n        delete this clone\n    end\nelse\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    forever\n        set [brightness v] effect to (pick random (-10) to (10))\n        set size to (pick random (41) to (90)) %\n        go to x: (pick random (-200) to (200)) y: (-180)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nelse\n    hide\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Cash\n\nwhen I start as a clone\nshow\nforever\n    go to [front v] layer\n    set size to (125) %\n    go to x: (((Coindigits) * (20)) - (-160)) y: (160)\n    if <<(length of (cashdisplay)) < (Coindigits)> or <<(Tasks?) = [Show]> or <<(Shop?) = [Show]> or <(Home Screen?) = [Yes]>>>> then\n        hide\n    else\n        show\n        go to [front v] layer\n        switch costume to (letter (Coindigits) of (cashdisplay))\n    end\nend\n\nwhen flag clicked\nset [shop? v] to [0]\nforever\n    if <(Cash) < [1000]> then\n        set [cashdisplay v] to (round (Cash))\n    end\n    if <<(Cash) > ((1000) - (1))> and <(Cash) < [1000000]>> then\n        set [cashdisplay v] to (join ((round (((Cash) / (1000)) * (100))) / (100)) [K])\n    end\nend\n\nwhen I receive [start the platformer v]\nwait (1) seconds\nset [coindigits v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [coindigits v] by (1)\nend\nhide\n\nwhen flag clicked\nforever\n    set [show cash for the blooming shop! v] to (join [£] (Cash))\nend\n\nwhen flag clicked\nhide variable [show cash for the blooming shop! v]\n\nwhen I receive [good skin shop v]\nshow variable [show cash for the blooming shop! v]\n\nwhen I receive [evil skin shop v]\nshow variable [show cash for the blooming shop! v]\n\nwhen I receive [hide shop v]\nhide variable [show cash for the blooming shop! v]\n\nwhen flag clicked\nset [playing? v] to []\nforever\n    if <<(is game menu is?) = [Yes]> or <<(Shop?) = [Show]> or <<(Home Screen?) = [Yes]> or <(Tasks?) = [Show]>>>> then\n        set [playing? v] to [No]\n    else\n        set [playing? v] to [Yes]\n    end\nend\n\nwhen I receive [start the platformer v]\nset [playing? v] to [Yes]\n\nwhen flag clicked\nset [playing? v] to []\n\nwhen I receive [start home screen v]\nset [home screen? v] to [Yes]\nforever\n    if <<(PC or Mobile?) = [PC]> or <(PC or Mobile?) = [Mobile]>> then\n        set [home screen? v] to [No]\n    else\n        set [home screen? v] to [Yes]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\n@Money Box! xD\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [hide shop v]\nif <(is game menu is?) = [No]> then\n    hide\nelse\n    show\nend\n\nwhen I receive [back from menu v]\nshow\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [evil skin shop v]\nhide\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nshow\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [No]> then\n    hide\nelse\n    show\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen I receive [settings v]\n\nwhen I receive [start home screen v]\nhide\n\n@Shop Background\n\nif <(Evil/Good?) = [Evil]> then\n    broadcast (Evil Skin Shop v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        broadcast (Good Skin Shop v)\n    end\nend\n\nwhen I receive [evil skin shop v]\nshow\nswitch costume to (evil v)\n\nwhen I receive [good skin shop v]\nshow\nswitch costume to (default v)\n\nwhen flag clicked\nhide\n\nwhen I receive [back from menu v]\nhide\n\nwhen I receive [next level v]\nhide\n\nwhen I receive [start home screen v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n\ngo to [front v] layer\n\nwhen I receive [hide shop v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@Good Shop Side Thing\n\nwhen I receive [choose your shop side v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (-97) y: (-20)\n\nwhen this sprite clicked\nhide\nset [evil/good? v] to [Good]\nbroadcast (show the blooming text again v)\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen I receive [show the blooming text again v]\nhide\n\n@Evil Shop Side Thing\n\nwhen I receive [choose your shop side v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (97) y: (-20)\n\nwhen this sprite clicked\nhide\nset [evil/good? v] to [Evil]\nbroadcast (show the blooming text again v)\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [mobile or pc? v]\nhide\n\nwhen I receive [show the blooming text again v]\nhide\n\n@Back Button (Tasks)\n\nwhen flag clicked\ngo to x: (-199) y: (144)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nset [tasks? v] to [Hide]\nbroadcast (Hide Tasks v)\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (50) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [60]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [50]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Back Button (Shop)\n\nwhen flag clicked\ngo to x: (-199) y: (144)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen I receive [good skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nset [shop? v] to [Hide]\nbroadcast (Hide Shop v)\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nset size to (50) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [60]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [50]>\n            change size by (-2)\n        end\n    end\nend\n\nset [menu back/forward v] to [forward]\nwait (0.01) seconds\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Blue Skin\n\nwhen flag clicked\ngo to x: (-150) y: (50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Blue Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Blue]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [5]> or <(Cash) = [5]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [5]> or <(Cash) = [5]>> then\n            change [cash v] by (-5)\n            wait (0.01) seconds\n            broadcast (Blue Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Blue]\n        end\n    else\n        switch costume to (blue skin v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (blue skin v)\nset [skin bought/chosen v] to []\nset [bought? v] to []\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Bought?) = [Yes]> then\n        switch costume to (bought v)\n    else\n        switch costume to (blue skin v)\n    end\nend\n\nwhen flag clicked\nset [bought? v] to []\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Green Skin\n\nwhen flag clicked\nswitch costume to (green skin v)\ngo to x: (-150) y: (0)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nset [skin bought/chosen v] to [Green]\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Green Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Green]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [15]> or <(Cash) = [15]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [15]> or <(Cash) = [15]>> then\n            change [cash v] by (-15)\n            wait (0.01) seconds\n            broadcast (Green Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Green]\n        end\n    else\n        switch costume to (green skin v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nwhen flag clicked\nset [bought? v] to []\nforever\n    if <(Bought?) = [Yes]> then\n        switch costume to (bought v)\n    else\n        switch costume to (blue skin v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Red Skin\n\nwhen flag clicked\nswitch costume to (red skin v)\ngo to x: (-150) y: (-50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Red Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Red]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [30]> or <(Cash) = [30]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [30]> or <(Cash) = [30]>> then\n            change [cash v] by (-30)\n            wait (0.01) seconds\n            broadcast (Red Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Red]\n        end\n    else\n        switch costume to (red skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    set [boughtred v] to [Yes]\n    if <<(Cash) > [30]> or <(Cash) = [30]>> then\n        change [cash v] by (-30)\n        wait (0.01) seconds\n        broadcast (Red Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Red]\n    end\nelse\n    broadcast (Red Skin v)\n    set [skin bought/chosen v] to [Red]\nend\n\nwhen flag clicked\nset [bought? v] to []\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Bought?) = [Yes]> then\n        forever\n            switch costume to (bought v)\n        end\n    else\n        switch costume to (blue skin v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Gold Skin\n\nwhen flag clicked\nset [bought? v] to []\nswitch costume to (gold skin v)\ngo to x: (-150) y: (-100)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nset [skin bought/chosen v] to [Blue]\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Gold Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Gold]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [50]> or <(Cash) = [50]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [50]> or <(Cash) = [50]>> then\n            change [cash v] by (-50)\n            wait (0.01) seconds\n            broadcast (Gold Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Gold]\n        end\n    else\n        switch costume to (gold skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    if <<(Cash) > [50]> or <(Cash) = [50]>> then\n        change [cash v] by (-50)\n        wait (0.01) seconds\n        broadcast (Gold Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Gold]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@Pink Skin\n\nwhen flag clicked\nswitch costume to (pink skin v)\ngo to x: (-45) y: (50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Pink Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Pink]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [50]> or <(Cash) = [50]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [50]> or <(Cash) = [50]>> then\n            change [cash v] by (-50)\n            wait (0.01) seconds\n            broadcast (Pink Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Pink]\n        end\n    else\n        switch costume to (pink skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    if <<(Cash) > [50]> or <(Cash) = [50]>> then\n        change [cash v] by (-50)\n        wait (0.01) seconds\n        broadcast (Pink Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Pink]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<(Shop?) = [Show]> and <touching (mouse-pointer v)?>> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nset [bought? v] to []\n\nshow\n\n\n\nwhen [timer v] > (0.4)\nhide\n\n@cheekyscuola Skin\n\nwhen flag clicked\nswitch costume to (cheekyscuola skin v)\ngo to x: (-45) y: (0)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nset [skin bought/chosen v] to [Blue]\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (cheekyscuola Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [cheekyscuola]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [50]> or <(Cash) = [50]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [100]> or <(Cash) = [100]>> then\n            change [cash v] by (-100)\n            wait (0.01) seconds\n            broadcast (cheekyscuola Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [cheekyscuola]\n        end\n    else\n        switch costume to (cheekyscuola skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    if <<(Cash) > [50]> or <(Cash) = [50]>> then\n        change [cash v] by (-50)\n        wait (0.01) seconds\n        broadcast (Pink Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Pink]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<(Shop?) = [Show]> and <touching (mouse-pointer v)?>> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n\n\nwhen flag clicked\nset [bought? v] to []\n\nshow\n\n\n\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@levi_minecraft Skin\n\nwhen flag clicked\nswitch costume to (levi_minecraft skin v)\ngo to x: (-45) y: (-50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nset [skin bought/chosen v] to [Blue]\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Levi_minecraft Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [levi_minecraft]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [100]> or <(Cash) = [100]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [100]> or <(Cash) = [100]>> then\n            change [cash v] by (-100)\n            wait (0.01) seconds\n            broadcast (Levi_minecraft Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [levi_minecraft]\n        end\n    else\n        switch costume to (levi_minecraft skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    if <<(Cash) > [50]> or <(Cash) = [50]>> then\n        change [cash v] by (-50)\n        wait (0.01) seconds\n        broadcast (Pink Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Pink]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<(Shop?) = [Show]> and <touching (mouse-pointer v)?>> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n\n\nwhen flag clicked\nset [bought? v] to []\n\nshow\n\n\n\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@duoof Skin\n\nwhen flag clicked\nswitch costume to (duoof skin v)\ngo to x: (-45) y: (-100)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nset [skin bought/chosen v] to [Blue]\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (duoof Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [duoof]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [100]> or <(Cash) = [100]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [100]> or <(Cash) = [100]>> then\n            change [cash v] by (-100)\n            wait (0.01) seconds\n            broadcast (duoof Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [duoof]\n        end\n    else\n        switch costume to (duoof skin v)\n    end\nend\n\nif <not <(costume [number v]) = [2]>> then\n    if <<(Cash) > [50]> or <(Cash) = [50]>> then\n        change [cash v] by (-50)\n        wait (0.01) seconds\n        broadcast (Pink Skin v)\n        switch costume to (sold v)\n        set [skin bought/chosen v] to [Pink]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (bought v)\n        end\n    end\nend\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<(Shop?) = [Show]> and <touching (mouse-pointer v)?>> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n\n\nwhen flag clicked\nset [bought? v] to []\n\nshow\n\n\n\nhide\n\nwhen [timer v] > (0.4)\nhide\n\n@Sunny Day Skin\n\nwhen flag clicked\nswitch costume to (duoof skin v)\ngo to x: (60) y: (50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [good skin shop v]\nshow\n\nwhen I receive [evil skin shop v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Bought?) = [Yes]> then\n    broadcast (Sunny Day Skin v)\n    switch costume to (bought v)\n    set [skin bought/chosen v] to [Sunny Day]\nelse\n    if <<not <(costume [number v]) = [2]>> and <<(Cash) > [125]> or <(Cash) = [125]>>> then\n        set [bought? v] to [Yes]\n        if <<(Cash) > [125]> or <(Cash) = [125]>> then\n            change [cash v] by (-125)\n            wait (0.01) seconds\n            broadcast (Sunny Day Skin v)\n            switch costume to (bought v)\n            set [skin bought/chosen v] to [Sunny Day Skin]\n        end\n    else\n        switch costume to (sunny day skin v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n    end\nend\n\nforever\n    switch costume to (bought v)\nend\n\nwhen flag clicked\nforever\n    if <<(Shop?) = [Show]> and <touching (mouse-pointer v)?>> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nswitch costume to (sunny day skin v)\nset [bought? v] to []\n\nwhen [timer v] > (0.4)\nhide\n\n@Task 1\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-150) y: (50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start the platformer v]\nswitch costume to (completed v)\nchange [cash v] by (10)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 2\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-150) y: (0)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [level 5 passed v]\nswitch costume to (completed v)\nchange [cash v] by (5)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 3\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-150) y: (-50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [level 10 passed v]\nswitch costume to (completed v)\nchange [cash v] by (10)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 4\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-150) y: (-100)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [level 15 passed v]\nswitch costume to (completed v)\nchange [cash v] by (15)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 5\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-45) y: (50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [complete the platformer v]\nswitch costume to (completed v)\nchange [cash v] by (20)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 6\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-45) y: (0)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [da good side has been chosen v]\nswitch costume to (completed v)\nchange [cash v] by (5)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Task 7\n\nwhen flag clicked\nset [cash v] to [0]\nswitch costume to (task 1 v)\ngo to x: (-45) y: (-50)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start home screen v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        forever\n            switch costume to (completed v)\n        end\n    end\nend\n\nwhen I receive [show tasks v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [da evil side has been chosen v]\nswitch costume to (completed v)\nchange [cash v] by (5)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Tasks Background\n\nif <(Evil/Good?) = [Evil]> then\n    broadcast (Evil Skin Shop v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        broadcast (Good Skin Shop v)\n    end\nend\n\nwhen I receive [show tasks v]\nshow\nswitch costume to (default v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [back from menu v]\nhide\n\nwhen I receive [next level v]\nhide\n\nwhen I receive [start home screen v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [hide tasks v]\nhide\nswitch costume to (default v)\n\n@Epic text for da story >:D\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start the platformer v]\nshow\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil text 1 v)\nelse\n    switch costume to (good text 1 v)\nend\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [start home screen v]\nswitch costume to (blank v)\n\n@Shadows\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nshow\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil lvl 1 shadows v)\nelse\n    switch costume to (good lvl 1 shadows v)\nend\n\nwhen I receive [start home screen v]\nswitch costume to (hide v)\n\n@Spike\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    go to [back v] layer\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\ngo to x: (0) y: (0)\nshow\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil spike lvl 1 v)\nelse\n    switch costume to (good spike lvl 1 v)\nend\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\n@le bouncy\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nshow\nif <(Evil/Good?) = [Evil]> then\n    show\n    switch costume to (evil text 1 v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        show\n        switch costume to (good text 1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    hide\n    reset timer\n    set [brightness v] effect to (-8)\n    set [color v] effect to (185)\nend\n\nwhen I start as a clone\nswitch costume to (test v)\nforever\n    if <touching (player? v)?> then\n        if <(Evil/Good?) = [Evil]> then\n            repeat (8)\n                next costume\n            end\n            repeat (8)\n                switch costume to ((costume [number v]) - (1))\n            end\n        else\n            if <(Evil/Good?) = [Good]> then\n                repeat (8)\n                    next costume\n                end\n                repeat (8)\n                    switch costume to ((costume [number v]) - (1))\n                end\n            end\n        end\n    end\n    if <(Evil/Good?) = [Evil]> then\n        clear graphic effects\n        set [brightness v] effect to (-8)\n        set [color v] effect to (185)\n    else\n        if <(Evil/Good?) = [Good]> then\n            clear graphic effects\n        end\n    end\n    if <(Level of game :P) = [1]> then\n        delete this clone\n    else\n        if <(Level of game :P) = [2]> then\n            delete this clone\n        else\n            if <(Level of game :P) = [3]> then\n                delete this clone\n            else\n                if <(Level of game :P) = [4]> then\n                    delete this clone\n                else\n                    if <(Level of game :P) = [5]> then\n                        delete this clone\n                    else\n                        if <(Level of game :P) = [6]> then\n                            delete this clone\n                        else\n                            if <(Level of game :P) = [7]> then\n                                show\n                                go to x: (-150) y: (-92)\n                            else\n                                if <(Level of game :P) = [8]> then\n                                    delete this clone\n                                else\n                                    if <(Level of game :P) = [9]> then\n                                        delete this clone\n                                    else\n                                        if <(Level of game :P) = [10]> then\n                                            delete this clone\n                                        else\n                                            if <(Level of game :P) = [11]> then\n                                                delete this clone\n                                            else\n                                                if <(Level of game :P) = [12]> then\n                                                    delete this clone\n                                                else\n                                                    if <(Level of game :P) = [13]> then\n                                                        delete this clone\n                                                    else\n                                                        if <(Level of game :P) = [14]> then\n                                                            show\n                                                            go to x: (-49) y: (-91)\n                                                        else\n                                                            if <(Level of game :P) = [15]> then\n                                                                delete this clone\n                                                            else\n                                                                if <(Level of game :P) = [16]> then\n                                                                    show\n                                                                    go to x: (-145) y: (-92)\n                                                                else\n                                                                    if <(Level of game :P) = [17]> then\n                                                                        hide\n                                                                        delete this clone\n                                                                    else\n                                                                        if <(Level of game :P) = [18]> then\n                                                                            show\n                                                                            go to x: (-201) y: (-102)\n                                                                        else\n                                                                            if <(Level of game :P) = [19]> then\n                                                                                delete this clone\n                                                                            else\n                                                                                if <(Level of game :P) = [20]> then\n                                                                                    delete this clone\n                                                                                else\n                                                                                    if <(Level of game :P) = [21]> then\n                                                                                        delete this clone\n                                                                                    else\n                                                                                        if <(Level of game :P) = [22]> then\n                                                                                            delete this clone\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    switch costume to (test v)\nend\n\nif <(Level of game :P) = [18]> then\n    show\n    go to x: (-48) y: (-90)\nend\n\nif <(Level of game :P) = [17]> then\n    hide\n    delete this clone\nend\n\n@le bouncy2\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    show\n    switch costume to (evil text 1 v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        show\n        switch costume to (good text 1 v)\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    hide\n    reset timer\n    set [brightness v] effect to (-8)\n    set [color v] effect to (185)\nend\n\nwhen I start as a clone\nswitch costume to (test v)\nforever\n    if <touching (player? v)?> then\n        if <(Evil/Good?) = [Evil]> then\n            repeat (8)\n                next costume\n            end\n            repeat (8)\n                switch costume to ((costume [number v]) - (1))\n            end\n        else\n            if <(Evil/Good?) = [Good]> then\n                repeat (8)\n                    next costume\n                end\n                repeat (8)\n                    switch costume to ((costume [number v]) - (1))\n                end\n            end\n        end\n    end\n    if <(Evil/Good?) = [Evil]> then\n        clear graphic effects\n        set [brightness v] effect to (-8)\n        set [color v] effect to (185)\n    else\n        if <(Evil/Good?) = [Good]> then\n            clear graphic effects\n        end\n    end\n    if <<(Level of game :P) = [1]> or <(Level of game :P) = [23]>> then\n        delete this clone\n    else\n        if <<(Level of game :P) = [2]> or <(Level of game :P) = [24]>> then\n            delete this clone\n        else\n            if <<(Level of game :P) = [3]> or <(Level of game :P) = [25]>> then\n                delete this clone\n            else\n                if <<(Level of game :P) = [4]> or <(Level of game :P) = [26]>> then\n                    delete this clone\n                else\n                    if <<(Level of game :P) = [5]> or <(Level of game :P) = [27]>> then\n                        delete this clone\n                    else\n                        if <<(Level of game :P) = [6]> or <(Level of game :P) = [28]>> then\n                            delete this clone\n                        else\n                            if <<(Level of game :P) = [7]> or <(Level of game :P) = [29]>> then\n                                show\n                                go to x: (0) y: (26)\n                            else\n                                if <<(Level of game :P) = [8]> or <(Level of game :P) = [30]>> then\n                                    delete this clone\n                                else\n                                    if <<(Level of game :P) = [9]> or <(Level of game :P) = [31]>> then\n                                        delete this clone\n                                    else\n                                        if <<(Level of game :P) = [10]> or <(Level of game :P) = [32]>> then\n                                            delete this clone\n                                        else\n                                            if <<(Level of game :P) = [11]> or <(Level of game :P) = [33]>> then\n                                                delete this clone\n                                            else\n                                                if <<(Level of game :P) = [12]> or <(Level of game :P) = [34]>> then\n                                                    delete this clone\n                                                else\n                                                    if <(Level of game :P) = [13]> then\n                                                        delete this clone\n                                                    else\n                                                        if <(Level of game :P) = [13]> then\n                                                            delete this clone\n                                                        else\n                                                            if <(Level of game :P) = [14]> then\n                                                                delete this clone\n                                                            else\n                                                                if <(Level of game :P) = [14]> then\n                                                                    delete this clone\n                                                                else\n                                                                    if <(Level of game :P) = [15]> then\n                                                                        delete this clone\n                                                                    else\n                                                                        if <(Level of game :P) = [16]> then\n                                                                            delete this clone\n                                                                        else\n                                                                            if <(Level of game :P) = [17]> then\n                                                                                delete this clone\n                                                                            else\n                                                                                if <(Level of game :P) = [18]> then\n                                                                                    show\n                                                                                    go to x: (-3) y: (-98)\n                                                                                else\n                                                                                    if <(Level of game :P) = [19]> then\n                                                                                        delete this clone\n                                                                                    else\n                                                                                        if <(Level of game :P) = [20]> then\n                                                                                            delete this clone\n                                                                                        else\n                                                                                            if <(Level of game :P) = [21]> then\n                                                                                                delete this clone\n                                                                                            else\n                                                                                                if <(Level of game :P) = [22]> then\n                                                                                                    delete this clone\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (test v)\n    create clone of (_myself_ v)\nend\n\nhide\n\n@Water\n\nwhen I start as a clone\nforever\n    if <(Evil/Good?) = [Good]> then\n        show\n        set [ghost v] effect to (60)\n        go to [back v] layer\n        switch costume to (Level of game :P)\n        set y to ((([sin v] of (((timer) + (me)) * (300)) ) * (8)) - ((me) * (10)))\n    end\nend\n\nwhen I receive [start the platformer v]\nclear graphic effects\nhide\ngo to x: (0) y: (0)\nset [me v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change y by (-5)\n    change [brightness v] effect by (-10)\n    change [me v] by (1)\nend\n\n@Lava\n\nwhen I start as a clone\nforever\n    if <(Evil/Good?) = [Evil]> then\n        show\n        set [ghost v] effect to (60)\n        go to [back v] layer\n        switch costume to (Level of game :P)\n        set y to ((([sin v] of (((timer) + (me*)) * (300)) ) * (8)) - ((me*) * (10)))\n    end\nend\n\nwhen I receive [start the platformer v]\nclear graphic effects\nhide\ngo to x: (0) y: (0)\nset [me* v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change y by (-5)\n    change [brightness v] effect by (-10)\n    change [me* v] by (1)\nend\n\n@Background Art\n\nwhen flag clicked\nswitch costume to (level 1 v)\nhide\n\nwhen I receive [next level v]\nnext costume\nwait (0.01) seconds\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nif <(Evil/Good?) = [Evil]> then\n    switch costume to (evil level 1 v)\nelse\n    if <(Evil/Good?) = [Good]> then\n        switch costume to (level 1 v)\n    end\nend\nforever\n    show\n    go to [back v] layer\nend\n\n@Settings\n\nwhen flag clicked\nset [is game menu is? v] to []\ngo to x: (205) y: (121)\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start home screen v]\nset [is game menu is? v] to [No]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(Is Settings Open?) = [Yes]> then\n    broadcast (Settings v)\n    wait (0.01) seconds\n    set [is settings open? v] to [No]\nelse\n    if <(Is Settings Open?) = [No]> then\n        broadcast (Back From da Settings v)\n        wait (0.01) seconds\n        broadcast (Settings v)\n        wait (0.01) seconds\n        set [is settings open? v] to [Yes]\n    end\nend\n\nwhen flag clicked\nset [menu back/forward v] to []\nforever\n    go to [front v] layer\nend\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nbroadcast (menu v)\nset [menu back/forward v] to [back]\n\nbroadcast (back from menu v)\nset [menu back/forward v] to [forward]\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [hide tasks v]\nif <(is game menu is?) = [Yes]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [back from menu v]\nshow\n\nforever\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [settings v]\nforever\n    go to [front v] layer\nend\n\n@SettingsMenu\n\nwhen I receive [settings v]\nif <(Is Settings Open?) = [Yes]> then\n    show\nelse\n    if <(Is Settings Open?) = [No]> then\n        hide\n    end\nend\n\nwhen flag clicked\nset [is settings open? v] to [No]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start the platformer v]\nset [is settings open? v] to [Yes]\n\n@On/Off (Button Show?)\n\nwhen flag clicked\nset [on/off 1 v] to [1]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [settings v]\nshow\n\nwhen this sprite clicked\nif <(On/Off 1) = [1]> then\n    switch costume to (costume3 v)\n    set [on/off 1 v] to [0]\nelse\n    switch costume to (costume2 v)\n    set [on/off 1 v] to [1]\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [back from settings v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [settings v]\nshow\n\nwhen flag clicked\nforever\n    if <(Is Settings Open?) = [No]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat until <(Is Settings Open?) = [Yes]>\n    hide\nend\n\nforever\n    \n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [settings v]\nshow\nforever\n    go to [front v] layer\nend\n\n@On/Off (Music)\n\nwhen flag clicked\nset [on/off 2 v] to [1]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [settings v]\nshow\n\nwhen this sprite clicked\nif <(On/Off 2) = [1]> then\n    broadcast (Turn Music Off v)\n    switch costume to (costume3 v)\n    set [on/off 2 v] to [0]\nelse\n    broadcast (Turn Music On v)\n    switch costume to (costume2 v)\n    set [on/off 2 v] to [1]\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [back from settings v]\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [settings v]\nshow\n\nwhen flag clicked\nforever\n    if <(Is Settings Open?) = [No]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat until <(Is Settings Open?) = [Yes]>\n    hide\nend\n\nforever\n    \n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [settings v]\nshow\nforever\n    go to [front v] layer\nend\n\n@Home\n\nwhen flag clicked\nset [is game menu is? v] to []\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start home screen v]\nset [is game menu is? v] to [No]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [pc or mobile? v] to []\nset [home screen? v] to [Yes]\nbroadcast (Start home screen v)\nwait (0.01) seconds\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [good skin shop v]\nhide\n\nwhen I receive [hide shop v]\nhide\n\nwhen I receive [show tasks v]\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player? v)?> then\n        set [ghost v] effect to (75)\n    else\n        if <not <touching (player? v)?>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Button Sound Effect duh v)\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [hide tasks v]\nhide\n\nwhen flag clicked\nforever\n    if <(Level of game :P) = [22]> then\n        show\n    else\n        hide\n    end\nend\n\n@Permission to Skip?\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-100)\n    show\nend\n\nwhen I receive [permission to skip? v]\nask [Skiping a level will cost you £30. Are you sure that you want to skip this level? \(Type YES or NO\)] and wait\nif <<(answer) = [YES]> and <<(Cash) > [30]> or <(Cash) = [30]>>> then\n    change [cash v] by (-30)\n    wait (0.01) seconds\n    broadcast (Next Level v)\n    wait (0.01) seconds\nelse\n    if <<(answer) = [No]> or <(answer) = []>> then\nend\n\n@Achievement Earned\n\nwhen flag clicked\nhide\ngo to x: (300) y: (-157)\n\nwhen [timer v] > (0.4)\nhide\ngo to x: (300) y: (-157)\n\nwhen I receive [level 5 passed v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [level 10 passed v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [level 15 passed v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [complete the platformer v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [da evil side has been chosen v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [da good side has been chosen v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen I receive [start the platformer v]\nshow\nglide (0.8) secs to x: (189) y: (-157)\nwait (1) seconds\nglide (0.8) secs to x: (300) y: (-157)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (240)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\nhide variable [show cash for the blooming shop! v]\ngo to [front v] layer\nstop all sounds\nshow\nglide (0.2) secs to x: (0) y: (-50)\nglide (0.2) secs to x: (0) y: (25)\nglide (0.2) secs to x: (0) y: (0)\nstart sound [Sad Violin… but it's OOF v]\nforever\n    go [forward v] (1) layers\nend\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 home screen v)\n\ngo to [front v] layer\n\ngo to [front v] layer\n\n