The Cube Platformer (Mobile Broken) 

Instructions: To Move:\n- W | A | D\n-  Left Arrow | Right Arrow | Up Arrow\n- (Mobile) Taping On The Screen (By NotMieRealName)\n\nTo Restart The Level:\n- R\n-------------------------------------------------------------------------\nLevel Editor Made By NotMieRealName\n\nLevel Editor Controls:\n- E to make the pen bigger and Q to make it smaller\n- T to make a tunnel vision levels\n- Click to place the blocks\n- C to clear all the blocks\n- Space to start the level \n- Also 1 for black | 2 for red | 3 for green | 4 for light blue |\n  5 to make your character spawn point | 6 to delete \n  blocks

@Stage\n\nwhen I receive [start 4 v]\nset [time v] to [0]\nforever\n    if <(Player Moving) = [True]> then\n        wait (1) seconds\n        change [time v] by (1)\n        if <(backdrop [name v]) = [The End]> then\n            wait (0.01) seconds\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nif <[username v] contains (username)?> then\n    set [sound costume v] to (letter (1) of (item (item # of (username) in [username v]) of [data v]))\n    set [sfx costume v] to (letter (3) of (item (item # of (username) in [username v]) of [data v]))\n    set [costume colour v] to (item (item # of (username) in [username v]) of [costume colour data v])\nelse\n    add [thing] to [data v]\n    add [thing] to [costume colour data v]\n    add (username) to [username v]\n    set [sound costume v] to [1]\n    set [sfx costume v] to [1]\nend\n\nwhen flag clicked\nwait (0.5) seconds\nforever\n    replace item (item # of (username) in [username v]) of [data v] with (join (sound costume) (join [/] (sfx costume)))\n    replace item (item # of (username) in [username v]) of [costume colour data v] with (costume colour)\nend\n\nwhen I receive [start 3 v]\nforever\n    if <<(time) < (☁ mobile highscore)> and <(backdrop [name v]) = [The End]>> then\n        if <not <[blacklisted v] contains (username)?>> then\n            set [☁ mobile highscore v] to (time)\n        end\n    end\nend\n\nwhen I receive [start 4 v]\nforever\n    if <<(time) < (☁ computer highscore)> and <(backdrop [name v]) = [The End]>> then\n        if <not <[blacklisted v] contains (username)?>> then\n            set [☁ computer highscore v] to (time)\n        end\n    end\nend\n\nwhen I receive [start 3 v]\nset [time v] to [0]\nforever\n    if <(Player Moving) = [True]> then\n        wait (1) seconds\n        change [time v] by (1)\n        if <(backdrop [name v]) = [The End]> then\n            wait (0.01) seconds\n            stop [this script v]\n        end\n    end\nend\n\n@Player\n\nwhen I receive [red v]\nset [costume colour v] to [Red]\n\nwhen I receive [orange v]\nset [costume colour v] to [Orange]\n\nwhen I receive [yellow v]\nset [costume colour v] to [Yellow]\n\nwhen I receive [green v]\nset [costume colour v] to [Green]\n\nwhen I receive [lightblue v]\nset [costume colour v] to [LightBlue]\n\nwhen I receive [purple v]\nset [costume colour v] to [Purple]\n\nwhen I receive [start 4 v]\nset size to (100) %\nshow\ngo to x: (-183) y: (-103)\nwait (0.4) seconds\nset [playing v] to [True]\nhide variable [☁ computer highscore v]\nhide variable [time v]\nset [player moving v] to [True]\nforever\n    if <(Player Moving) = [True]> then\n        change [y v] by (-0.5)\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by (-0.6)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x v] by (0.6)\n        end\n        set [x v] to ((x) * (0.9))\n        change x by (x)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (1)\n                                if <touching color (#000000)?> then\n                                    change y by (-6)\n                                    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                        set [y v] to [10]\n                                        if <(x) > [0]> then\n                                            set [x v] to [-10]\n                                        else\n                                            set [x v] to [10]\n                                        end\n                                    else\n                                        change x by ((x) * (-1))\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (y)\n        if <touching color (#000000)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        change y by (-0.5)\n        change y by (-10)\n        if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [9.6]\n        end\n        change y by (0.5)\n        change y by (10)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-182) y: (-105)\n    end\n    if <touching color (#00f6ff)?> then\n        change [x v] by (10)\n    end\n    if <(x position) > [236]> then\n        go to x: (-183) y: (y position)\n        next backdrop\n    end\nend\n\nwhen I receive [black v]\nset [costume colour v] to [Black]\n\nwhen I receive [menu  v]\nset [menu v] to [True]\nswitch backdrop to (menu2 v)\nshow\nset size to (150) %\nforever\n    if <<touching color (#63ea00)?> and <(sfx costume) = [1]>> then\n        play sound [Boing v] until done\n    end\n    if <<touching color (#00f6ff)?> and <(sfx costume) = [1]>> then\n        play sound [Zoop v] until done\n    end\nend\n\nwhen I receive [blue v]\nset [costume colour v] to [Blue]\n\nwhen I receive [pink v]\nset [costume colour v] to [Pink]\n\nwhen I receive [menu  v]\nforever\n    switch costume to (costume colour)\nend\n\nwhen I receive [menu  v]\ngo to x: (-205) y: (200)\nrepeat (20)\n    change y by (((-7) - (y position)) * (0.20))\nend\n\nwhen I receive [start 2 v]\nset [player moving v] to [False]\nset [level editor v] to [True]\nwait (0.4) seconds\nswitch backdrop to (menu v)\nforever\n    if <<(Player Moving) = [True]> and <(level editor) = [True]>> then\n        change [y v] by (-0.5)\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n            change [x v] by (-0.6)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(mouse x) > (x position)> and <mouse down?>>> then\n            change [x v] by (0.6)\n        end\n        set [x v] to ((x) * (0.9))\n        change x by (x)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (1)\n                                if <touching color (#000000)?> then\n                                    change y by (-6)\n                                    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > ((y position) + (60))> and <mouse down?>>>> then\n                                        set [y v] to [10]\n                                        if <(x) > [0]> then\n                                            set [x v] to [-10]\n                                        else\n                                            set [x v] to [10]\n                                        end\n                                    else\n                                        change x by ((x) * (-1))\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (y)\n        if <touching color (#000000)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        change y by (-0.5)\n        change y by (-10)\n        if <<touching color (#000000)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > ((y position) + (60))> and <mouse down?>>>> then\n            set [y v] to [9.6]\n        end\n        change y by (0.5)\n        change y by (10)\n    end\n    if <touching color (#63ea00)?> then\n        set [mode v] to [jump]\n        set [y v] to [13]\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (spawn x) y: (spawn y)\n    end\n    if <key (r v) pressed?> then\n        go to x: (spawn x) y: (spawn y)\n    end\n    if <touching (level wall v)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-186) y: (y position)\n    end\n    if <touching color (#00f6ff)?> then\n        change [x v] by (10)\n    end\nend\n\nwhen flag clicked\nswitch costume to (black v)\nset [y v] to [0]\nset [spawn x v] to [-183]\nset [spawn y v] to [-103]\nforever\n    if <<(playing) = [False]> and <(level editor) = [True]>> then\n        go to x: (spawn x) y: (spawn y)\n    end\nend\n\nwhen I receive [size set v]\nset size to (100) %\n\nwhen I receive [start v]\nhide\nforever\n    Touching Colours\nend\n\ndefine Touching Colours\nif <touching color (#ff0000)?> then\n    go to x: (-182) y: (-125)\nend\nif <touching color (#63ea00)?> then\n    set [mode v] to [jump]\n    set [y v] to [13]\nend\n\nwhen I receive [start 3 v]\nset size to (100) %\nshow\ngo to x: (-183) y: (-103)\nwait (0.4) seconds\nset [playing v] to [True]\nhide variable [☁ mobile highscore v]\nhide variable [time v]\nset [player moving v] to [True]\nforever\n    if <(Player Moving) = [True]> then\n        change [y v] by (-0.5)\n        if <<(mouse x) < (x position)> and <mouse down?>> then\n            change [x v] by (-0.6)\n        end\n        if <<(mouse x) > (x position)> and <mouse down?>> then\n            change [x v] by (0.6)\n            set [x v] to ((x) * (0.9))\n            change x by (x)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (1)\n                                if <touching color (#000000)?> then\n                                    change y by (1)\n                                    if <touching color (#000000)?> then\n                                        change y by (-6)\n                                        if <<(mouse y) > ((y position) + (60))> and <mouse down?>> then\n                                            set [y v] to [10]\n                                            if <(x) > [0]> then\n                                                set [x v] to [-10]\n                                            else\n                                                set [x v] to [10]\n                                            end\n                                        else\n                                            change x by ((x) * (-1))\n                                            set [x v] to [0]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change y by (y)\n            if <touching color (#000000)?> then\n                change y by ((y) * (-1))\n                set [y v] to [0]\n            end\n            change y by (-0.5)\n            change y by (-10)\n            if <<touching color (#000000)?> and <<(mouse y) > ((y position) + (60))> and <mouse down?>>> then\n                set [y v] to [9.6]\n            end\n            change y by (0.5)\n            change y by (10)\n        end\n    end\n    if <key (r v) pressed?> then\n        go to x: (-182) y: (-105)\n    end\n    if <touching color (#00f6ff)?> then\n        change [x v] by (10)\n    end\n    if <(x position) > [236]> then\n        go to x: (-183) y: (y position)\n        next backdrop\n    end\nend\n\n@Sound\n\nwhen this sprite clicked\nif <(sound costume) = [1]> then\n    switch costume to (sound 2 v)\n    set [sound costume v] to [2]\nelse\n    switch costume to (sound 1 v)\n    set [sound costume v] to [1]\nend\n\nwhen I receive [hj v]\nglide (0.5) secs to x: (-179) y: (90)\n\nwhen I receive [jh v]\nglide (1.2) secs to x: (-179) y: (366)\n\nwhen I receive [hj v]\nrepeat (18)\n    change [ghost v] effect by (-7)\nend\n\nwhen I receive [jh v]\nrepeat (18)\n    change [ghost v] effect by (7)\nend\n\nwhen I receive [menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (25) %\n    else\n        set size to (22) %\n    end\nend\n\nwhen I receive [menu  v]\nforever\n    switch costume to (sound costume)\nend\n\nwhen I receive [menu  v]\nshow\ngo to x: (-179) y: (2550)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [menu  v]\nswitch costume to (sound 1 v)\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (80) %\n        play sound [Background Music v] until done\n    else\n        set volume to (0) %\n    end\nend\n\nwhen I receive [menu  v]\nset size to (22) %\nforever\n    if <(sound costume) = [1]> then\n        set volume to (80) %\n    end\n    if <(sound costume) = [2]> then\n        set volume to (0) %\n    end\nend\n\n@SFX Button\n\nwhen this sprite clicked\nif <(sfx costume) = [1]> then\n    switch costume to (sound 2 v)\n    set [sfx costume v] to [2]\nelse\n    switch costume to (sound 1 v)\n    set [sfx costume v] to [1]\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (33) %\n    else\n        set size to (30) %\n    end\nend\n\nwhen I receive [hj v]\nglide (0.5) secs to x: (-179) y: (43)\n\nwhen I receive [jh v]\nglide (1.2) secs to x: (-179) y: (366)\n\nwhen I receive [hj v]\nrepeat (18)\n    change [ghost v] effect by (-7)\nend\n\nwhen I receive [jh v]\nrepeat (18)\n    change [ghost v] effect by (7)\nend\n\nwhen flag clicked\nforever\n    switch costume to (sfx costume)\nend\n\nwhen flag clicked\nshow\ngo to x: (-179) y: (2550)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [menu  v]\nforever\n    go to [front v] layer\nend\n\n@Menu Button\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (63) %\n    else\n        set size to (60) %\n    end\nend\n\nwhen I receive [hj v]\nglide (0.5) secs to x: (-179) y: (-2)\n\nwhen I receive [hj v]\nrepeat (18)\n    change [ghost v] effect by (-7)\nend\n\nwhen I receive [jh v]\nglide (1.2) secs to x: (-179) y: (366)\n\nwhen I receive [jh v]\nrepeat (18)\n    change [ghost v] effect by (7)\nend\n\nwhen flag clicked\nshow\ngo to x: (-179) y: (2550)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen this sprite clicked\nswitch backdrop to (menu v)\nbroadcast (jh v)\nbroadcast (Menu  v)\nset [menu v] to [True]\nset [player moving v] to [False]\n\nwhen flag clicked\nbroadcast (Menu  v)\n\nwhen I receive [menu  v]\nhide variable [☁ computer highscore v]\nhide variable [time v]\n\nwhen I receive [start v]\nhide variable [☁ computer highscore v]\nhide variable [time v]\n\nwhen I receive [menu  v]\nforever\n    go to [front v] layer\nend\n\n@Play\n\nwhen flag clicked\nforever\n    switch costume to (costume2 v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n        set size to (100) %\n    else\n        set size to (90) %\n    end\nend\n\nwhen this sprite clicked\nif <(open / closed) = [False]> then\n    switch backdrop to (intro v)\n    broadcast (start v)\n    hide\nelse\n    broadcast (fail or turn off settings v)\nend\n\nwhen flag clicked\nset [time v] to [0]\n\nwhen I receive [menu  v]\nshow\ngo to x: (-2550) y: (0)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [menu  v]\nforever\n    switch costume to (costume2 v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n        set size to (110) %\n    else\n        set size to (90) %\n    end\nend\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Cube Colour\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        set size to (100) %\n    else\n        set size to (90) %\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nbroadcast (Colour v)\n\nwhen I receive [menu  v]\nshow\ngo to x: (-2550) y: (-100)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Level Editor\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        set size to (100) %\n    else\n        set size to (90) %\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [menu  v]\nshow\ngo to x: (2500) y: (-50)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\n\nwhen this sprite clicked\nbroadcast (start 2 v)\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\ngo [forward v] (99999) layers\n\n@The Cube\n\ndefine logo\nforever\n    change [move v] by (8)\n    change y by (([sin v] of (move) ) / (2))\n    if <touching (mouse-pointer v)?> then\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [menu  v]\nshow\nlogo\ngo to x: (-3) y: (49)\n\nwhen I receive [menu  v]\nset size to (200) %\nshow\ngo to x: (2500) y: (60)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@MenuFade\n\nwhen I receive [menu  v]\nset [ghost v] effect to (45)\nswitch costume to (pick random (1) to (4))\nshow\ngo [backward v] (99999) layers\ngo to x: (0) y: (-5000)\nrepeat (25)\n    change y by (((1) - (y position)) * (0.2))\nend\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Menu2\n\nwhen I receive [menu  v]\nset [ghost v] effect to (0)\nshow\ngo to x: (0) y: (5000)\nrepeat (25)\n    change y by (((1) - (y position)) * (0.2))\nend\n\nwhen I receive [start 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Menu\n\nwhen I receive [start v]\nrepeat (25)\n    change y by (((-500) - (y position)) * (0.2))\nend\n\nwhen I receive [menu  v]\nset [ghost v] effect to (20)\nset [brightness v] effect to (8)\nswitch costume to (pick random (1) to (4))\nshow\ngo [backward v] (99999) layers\ngo to x: (0) y: (-5000)\nrepeat (25)\n    change y by (((1) - (y position)) * (0.2))\nend\n\n@Black\n\nwhen I receive [colour v]\nwait (0.1) seconds\nshow\nset size to (100) %\ngo to x: (-41) y: (-150)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (black v)\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nset [menu v] to [False]\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Red\n\nwhen this sprite clicked\nbroadcast (red v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.9) seconds\nshow\nset size to (100) %\ngo to x: (91) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Orange\n\nwhen this sprite clicked\nbroadcast (orange v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.8) seconds\nshow\nset size to (100) %\ngo to x: (75) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Yellow\n\nwhen this sprite clicked\nbroadcast (yellow v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.7) seconds\nshow\nset size to (100) %\ngo to x: (58) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Green\n\nwhen this sprite clicked\nbroadcast (green v)\n\nwhen I receive [colour v]\nwait (0.6) seconds\nshow\nset size to (100) %\ngo to x: (42) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@LighBlue\n\nwhen this sprite clicked\nbroadcast (lightblue v)\n\nwhen I receive [colour v]\nwait (0.5) seconds\nshow\nset size to (100) %\ngo to x: (26) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Blue\n\nwhen this sprite clicked\nbroadcast (blue v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.4) seconds\nshow\nset size to (100) %\ngo to x: (9) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Purple\n\nwhen this sprite clicked\nbroadcast (purple v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.3) seconds\nshow\nset size to (100) %\ngo to x: (-8) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Pink\n\nwhen this sprite clicked\nbroadcast (pink v)\n\nwhen flag clicked\nhide\n\nwhen I receive [colour v]\nwait (0.2) seconds\nshow\nset size to (100) %\ngo to x: (-25) y: (-135)\nforever\n    change y by (((-125) - (y position)) * (0.20))\nend\n\nwhen I receive [menu  v]\nforever\n    if <(Menu) = [False]> then\n        hide\n    end\nend\n\nwhen I receive [hide coulors v]\nhide\n\n\n\nwhen I receive [colour v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-7)\nend\n\n@Highscore\n\nwhen I receive [start v]\nshow\ngo to x: (18) y: (155)\n\nwhen I receive [menu  v]\nhide\n\n@Time\n\nwhen I receive [start v]\nshow\ngo to x: (148) y: (157)\n\nwhen I receive [menu  v]\nhide\n\n@Moving Block\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 3 v]\nshow\ngo to x: (18) y: (-75)\nforever\n    if <(Player Moving) = [True]> then\n        glide (2) secs to x: (-72) y: (-75)\n        glide (2) secs to x: (111) y: (-75)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\nhide\n\n@Setting Button\n\nwhen this sprite clicked\nif <(Delay) = [False]> then\n    set [delay v] to [True]\n    if <(costume [number v]) = [1]> then\n        broadcast (hj v)\n        set [open / closed v] to [True]\n        switch costume to (setting 2 v)\n        set [player moving v] to [False]\n        repeat (10)\n            turn right (15) degrees\n        end\n    else\n        broadcast (jh v)\n        set [open / closed v] to [False]\n        switch costume to (settings v)\n        set [player moving v] to [True]\n        repeat (10)\n            turn left (15) degrees\n        end\n    end\nend\n\nwhen I receive [menu  v]\nswitch costume to (settings v)\nset [delay v] to [False]\n\nwhen I receive [hj v]\nwait (0.7) seconds\nset [delay v] to [False]\n\nwhen I receive [jh v]\nwait (0.7) seconds\nset [delay v] to [False]\n\nwhen I receive [menu  v]\nset [open / closed v] to [False]\n\nwhen I receive [menu  v]\ngo to x: (17) y: (149)\nrepeat (25)\n    change x by (((-215) - (x position)) * (0.2))\nend\n\nwhen I receive [start 2 v]\nforever\n    if <(playing) = [False]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    else\n        show\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen I receive [menu  v]\nshow\n\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Settings Box\n\nwhen I receive [hj v]\nrepeat (12)\n    change [ghost v] effect by (-7)\nend\n\nwhen flag clicked\nshow\ngo to x: (-179) y: (2550)\nset [ghost v] effect to (100)\ngo [forward v] (3) layers\n\nwhen I receive [jh v]\nrepeat (18)\n    change [ghost v] effect by (7)\nend\n\nwhen I receive [jh v]\nglide (1.2) secs to x: (-179) y: (366)\n\nwhen I receive [hj v]\nglide (0.5) secs to x: (-179) y: (35)\n\n@Numbers\n\nwhen I receive [start v]\nshow\nforever\n    if <(time) > [0]> then\n        if <(time) > [9]> then\n            if <(time) > [99]> then\n                switch costume to (letter (3) of (time))\n                go to x: (225) y: (154)\n            else\n                switch costume to (letter (2) of (time))\n                go to x: (213) y: (154)\n            end\n        else\n            switch costume to (letter (1) of (time))\n            go to x: (202) y: (154)\n        end\n    else\n        switch costume to (0 v)\n        go to x: (202) y: (154)\n        if <(Menu) = [False]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\n@Numbers2\n\nwhen I receive [start v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(time) > [9]> then\n            show\n            if <(time) > [99]> then\n                switch costume to (letter (2) of (time))\n                go to x: (213) y: (154)\n            else\n                switch costume to (letter (1) of (time))\n                go to x: (202) y: (154)\n            end\n        else\n            switch costume to (0 v)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\nwhen I receive [start 2 v]\nhide\n\n@Numbers3\n\nwhen I receive [start v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(time) > [99]> then\n            show\n            switch costume to (letter (1) of (time))\n        else\n            switch costume to (0 v)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\n@Moving Circle 1\n\nwhen I receive [start v]\npoint in direction (90)\nif <(Player Moving) = [True]> then\n    forever\n        turn right (5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Level 10]> then\n        show\n    else\n        hide\n    end\nend\n\n@Moving Circle 2\n\nwhen I receive [start v]\npoint in direction (90)\nif <(Player Moving) = [True]> then\n    forever\n        turn left (5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Level 10]> then\n        show\n    else\n        hide\n    end\nend\n\n@Moving Circle 3\n\nwhen I receive [start v]\npoint in direction (90)\nif <(Player Moving) = [True]> then\n    forever\n        turn right (5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Level 10]> then\n        show\n    else\n        hide\n    end\nend\n\n@Numbers4\n\nwhen I receive [start 4 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ computer highscore) > [0]> then\n            if <(☁ computer highscore) > [9]> then\n                show\n                if <(☁ computer highscore) > [99]> then\n                    switch costume to (letter (3) of (☁ computer highscore))\n                    go to x: (122) y: (154)\n                else\n                    switch costume to (letter (2) of (☁ computer highscore))\n                    go to x: (111) y: (154)\n                end\n            else\n                switch costume to (letter (1) of (☁ computer highscore))\n                go to x: (100) y: (154)\n            end\n        else\n            switch costume to (0 v)\n            go to x: (100) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\nwhen I receive [start 2 v]\nhide\n\n@Numbers5\n\nwhen I receive [start 4 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ computer highscore) > [9]> then\n            show\n            if <(☁ computer highscore) > [99]> then\n                switch costume to (letter (2) of (☁ computer highscore))\n                go to x: (111) y: (154)\n            else\n                switch costume to (letter (1) of (☁ computer highscore))\n                go to x: (100) y: (154)\n            end\n        else\n            switch costume to (0 v)\n            go to x: (111) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\nwhen I receive [start 2 v]\nhide\n\n@Numbers6\n\nwhen I receive [start 4 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ computer highscore) > [99]> then\n            show\n            switch costume to (letter (1) of (☁ computer highscore))\n        else\n            switch costume to (0 v)\n            go to x: (100) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\n@Black level \n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nset size to (350) %\nswitch costume to (costume1 v)\nforever\n    go to (player v)\nend\n\nwhen I receive [start v]\nforever\n    if <(backdrop [name v]) = [level 11]> then\n        show\n    else\n        hide\n    end\nend\n\n@MakeyBlock\n\nwhen I receive [start 2 v]\nwait (0.1) seconds\nset [menu v] to [False]\nforever\n    if <<(playing) = [False]> and <(Menu) = [False]>> then\n        go to x: ((round (((mouse x) + (-5)) / (15))) * (15)) y: ((round (((mouse y) + (-5)) / (15))) * (15))\n        if <mouse down?> then\n            broadcast (stamp v)\n            wait (0.001) seconds\n        end\n        if <key (1 v) pressed?> then\n            set [costume makey block v] to [1]\n        end\n        if <key (2 v) pressed?> then\n            set [costume makey block v] to [2]\n        end\n        if <key (3 v) pressed?> then\n            set [costume makey block v] to [3]\n        end\n        if <key (4 v) pressed?> then\n            set [costume makey block v] to [4]\n        end\n        if <key (5 v) pressed?> then\n            set [costume makey block v] to [5]\n        end\n        if <key (6 v) pressed?> then\n            set [costume makey block v] to [6]\n        end\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (70)\nset [playing v] to [False]\nerase all\n\nwhen I receive [start 2 v]\nforever\n    switch costume to (costume makey block)\nend\n\nwhen [c v] key pressed\nif <(playing) = [False]> then\n    erase all\nend\n\nwhen [q v] key pressed\nif <(size) > [50]> then\n    change size by (-5)\nend\n\nwhen [e v] key pressed\nif <(size) < [250]> then\n    change size by (5)\nend\n\nwhen flag clicked\nset size to (100) %\nset [level editor v] to [False]\nforever\n    if <<(playing) = [True]> and <(level editor) = [True]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen [space v] key pressed\nbroadcast (size set v)\nif <(level editor) = [True]> then\n    if <(playing) = [False]> then\n        set [player moving v] to [True]\n        set [playing v] to [True]\n    else\n        set [player moving v] to [False]\n        set [playing v] to [False]\n    end\nend\n\nwhen I receive [menu  v]\nset [level editor v] to [False]\nset [playing v] to [False]\nerase all\n\n@MakeyBlock2\n\nwhen flag clicked\nset size to (100) %\nerase all\nset [playing v] to [False]\n\nwhen I receive [start 2 v]\nforever\n    switch costume to (costume makey block)\n    go to (makeyblock v)\n    if <<(playing) = [False]> and <(Menu) = [False]>> then\n        hide\n    else\n        hide\n    end\nend\n\nwhen I receive [stamp v]\nif <(costume makey block) = [5]> then\n    set [spawn x v] to (x position)\n    set [spawn y v] to (y position)\nelse\n    stamp\nend\n\nwhen [q v] key pressed\nif <(size) > [50]> then\n    change size by (-5)\nend\n\nwhen [e v] key pressed\nif <(size) < [250]> then\n    change size by (5)\nend\n\n@Black level 2\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nset size to (350) %\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(tunnel vision) = [True]> then\n        go to (player v)\n        show\n    else\n        hide\n    end\nend\n\nwhen [t v] key pressed\nif <(playing) = [False]> then\n    if <(tunnel vision) = [True]> then\n        set [tunnel vision v] to [False]\n    else\n        set [tunnel vision v] to [True]\n    end\nend\n\nwhen I receive [menu  v]\nset [tunnel vision v] to [False]\n\nwhen flag clicked\nforever\n    if <<(playing) = [True]> and <(tunnel vision) = [True]>> then\n        show\n    else\n        hide\n    end\nend\n\n@Numbers7\n\nwhen I receive [start 3 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ mobile highscore) > [99]> then\n            show\n            switch costume to (letter (1) of (☁ mobile highscore))\n        else\n            switch costume to (0 v)\n            go to x: (100) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\n@Numbers8\n\nwhen I receive [start 3 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ mobile highscore) > [9]> then\n            show\n            if <(☁ mobile highscore) > [99]> then\n                switch costume to (letter (2) of (☁ mobile highscore))\n                go to x: (111) y: (154)\n            else\n                switch costume to (letter (1) of (☁ computer highscore))\n                go to x: (100) y: (154)\n            end\n        else\n            switch costume to (0 v)\n            go to x: (111) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\nwhen I receive [start 2 v]\nhide\n\n@Numbers9\n\nwhen I receive [start 3 v]\nshow\nforever\n    if <(Menu) = [False]> then\n        if <(☁ mobile highscore) > [0]> then\n            if <(☁ mobile highscore) > [9]> then\n                show\n                if <(☁ mobile highscore) > [99]> then\n                    switch costume to (letter (3) of (☁ mobile highscore))\n                    go to x: (122) y: (154)\n                else\n                    switch costume to (letter (2) of (☁ mobile highscore))\n                    go to x: (111) y: (154)\n                end\n            else\n                switch costume to (letter (1) of (☁ mobile highscore))\n                go to x: (100) y: (154)\n            end\n        else\n            switch costume to (0 v)\n            go to x: (100) y: (154)\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [menu  v]\nhide\n\nwhen I receive [start 2 v]\nhide\n\n@Mobile Or Computer?\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start 4 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [start 3 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Computer?\n\nwhen I receive [start v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (6)\n    else\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (start 4 v)\n\nwhen I receive [start 4 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [start 3 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Mobile?\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (6)\n    else\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (start 3 v)\n\nwhen I receive [start 3 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [start 4 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n