➘ | kitty platformer ✩

Instructions: 30 Apr 2019 to 1 May 2019 - What community likes\n4 May 2019 to 5 May 2019 - What community remixes\n\n==== INFO ====\nUse arrow keys or WASD to move. Get to the border of the screen without touching Red.

@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen I receive [play game v]\nset [music v] to [0]\nswitch backdrop to (1 v)\nrepeat until <(Level) = [50]>\n    play sound [Mysterious Sleeper v] until done\nend\n\n@Blank\n\nchange [total coins v] by (10)\n\n@Player\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nswitch costume to (player v)\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        start sound [Teleport2 v]\n        Game - Win\n        wait (0.1) seconds\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset [sx v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [gravity v] to [-12]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sy v] to [0]\nset [moving sprite v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nif <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [17]\n    end\nend\nif <(sy) > [-17]> then\n    change [sy v] by (-2)\nend\nChange Player Y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [-100]> then\n    set [scroll x v] to [-100]\n    set [x v] to [-100]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nif <touching (bouncy v)?> then\n    set [sy v] to [23]\nend\n\ndefine Change Player Y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (GRAVITY)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nchange [deaths v] by (1)\nset [exit v] to []\nstart sound [Oops v]\nrepeat (3)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.1) seconds\n\ndefine Test - Die\nif <<touching (danger v)?> or <touching (gears v)?>> then\n    set [exit v] to [die]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nchange [level v] by (1)\nhide\nset [deaths v] to [0]\nif <(LEVEL) = [4]> then\n    broadcast (Reset v)\nend\n\nwhen I receive [1 v]\nswitch costume to (player2 v)\n\nwhen I receive [2 v]\nswitch costume to (player3 v)\n\nwhen I receive [3 v]\nswitch costume to (player4 v)\n\nwhen I receive [4 v]\nswitch costume to (player5 v)\n\nwhen I receive [5 v]\nswitch costume to (player6 v)\n\nwhen I receive [6 v]\nswitch costume to (player7 v)\n\nwhen flag clicked\nset [1 v] to [0]\nset [2 v] to [0]\nset [3 v] to [0]\nset [4 v] to [0]\nset [5 v] to [0]\nset [6 v] to [0]\n\nwhen I receive [fix lvl 4 glitch v]\ngo to x: (-200) y: (0)\nset [level v] to [4]\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nGame - Die\n\nhide\nwait (1) seconds\n\nbroadcast (Reset v)\nbroadcast (Setup v)\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch backdrop to (3 v)\n    switch costume to (level 1 1 v)\n    Clone at x: [460] y: [0]\n    Clone at x: [460] y: [0]\n    Clone at x: [460] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [460] y: [0]\n        Clone at x: [460] y: [0]\n        Clone at x: [460] y: [0]\n        Clone at x: [460] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [460] y: [0]\n            Clone at x: [460] y: [0]\n            Clone at x: [460] y: [0]\n            Clone at x: [460] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [460] y: [0]\n                Clone at x: [460] y: [0]\n                Clone at x: [460] y: [0]\n                Clone at x: [0] y: [300]\n                Clone at x: [-500] y: [0]\n                Clone at x: [-500] y: [0]\n                Clone at x: [-500] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        switch backdrop to (2 v)\n                        Clone at x: [460] y: [0]\n                        broadcast (Time v)\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [☁ ☁ world best v] to [0]\nwait (1) seconds\n\nbroadcast (Setup v)\nstop [this script v]\n\nbroadcast (Reset v)\n\n@Collectables\n\nwhen I receive [green flag v]\nhide variable [mouse v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Coin v]\n    change [collected v] by (1)\n    change [total coins v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nhide variable [total coins v]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [391] y: [0]\n    Clone at x: [806] y: [-65]\n    Clone at x: [985] y: [40]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [196] y: [-16]\n        Clone at x: [403] y: [23]\n        Clone at x: [819] y: [-65]\n        Clone at x: [921] y: [-65]\n        Clone at x: [1023] y: [-65]\n        Clone at x: [1217] y: [19]\n        Clone at x: [1336] y: [19]\n        Clone at x: [1441] y: [19]\n    else\n        if <(LEVEL) = [3]> then\n            Clone at x: [400] y: [-40]\n            Clone at x: [469] y: [0]\n            Clone at x: [550] y: [-40]\n            Clone at x: [714] y: [-22]\n            Clone at x: [714] y: [-66]\n            Clone at x: [837] y: [9]\n            Clone at x: [974] y: [9]\n            Clone at x: [1174] y: [-11]\n            Clone at x: [1226] y: [30]\n            Clone at x: [1278] y: [-11]\n        else\n            if <(LEVEL) = [4]> then\n                Clone at x: [183] y: [27]\n                Clone at x: [340] y: [27]\n                Clone at x: [530] y: [27]\n                Clone at x: [786] y: [27]\n                Clone at x: [1124] y: [27]\n                Clone at x: [1331] y: [245]\n                Clone at x: [1065] y: [345]\n                Clone at x: [825] y: [272]\n                Clone at x: [392] y: [245]\n                Clone at x: [197] y: [335]\n            else\n                if <(LEVEL) = [5]> then\n                    Clone at x: [286] y: [27]\n                    Clone at x: [418] y: [-7]\n                    Clone at x: [802] y: [-64]\n                    Clone at x: [1238] y: [-64]\n                    Clone at x: [1649] y: [28]\n                end\n            end\n        end\n    end\nend\nset [x v] to [-999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nClone at x: [340] y: [27]\nClone at x: [530] y: [27]\nClone at x: [786] y: [27]\nClone at x: [1124] y: [27]\nClone at x: [1331] y: [245]\nClone at x: [1065] y: [345]\nClone at x: [825] y: [272]\nClone at x: [392] y: [245]\nClone at x: [197] y: [335]\n\nClone at x: [631] y: [11]\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\ngo to x: (0) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [460] y: [0]\n    Clone at x: [460] y: [0]\n    Clone at x: [460] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [460] y: [0]\n        Clone at x: [460] y: [0]\n        Clone at x: [460] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [460] y: [0]\n            Clone at x: [460] y: [0]\n            Clone at x: [460] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [460] y: [0]\n                Clone at x: [460] y: [0]\n                Clone at x: [460] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                    Clone at x: [460] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                    end\n                end\n            end\n        end\n    end\nend\n\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nturn right (4) degrees\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [win]\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone at x: [1351] y: [-32]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (closed v)\n        Clone at x: [1608] y: [-38]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (closed v)\n            Clone at x: [1412] y: [-25]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (closed v)\n                Clone at x: [-32] y: [295]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (closed v)\n                    Clone at x: [1820] y: [-30]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (closed v)\n                        Clone at x: [6000] y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\n\nrepeat (10)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nchange [collected max v] by (1)\n\nset [collected max v] to [0]\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\nchange [collected v] by (1)\ndelete this clone\n\n@Intro\n\nwhen flag clicked\nstart sound [TheFatRat - Time Lapse v]\nwait (0) seconds\nswitch costume to (template v)\nhide variable [score v]\nhide variable [showing score v]\nhide variable [your best v]\nhide variable [☁ ☁ world best v]\nswitch backdrop to (3 v)\nset [brightness v] effect to (0)\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (5) %\nshow\ngo to [front v] layer\nrepeat (35)\n    change size by (((50) - (size)) / (5))\nend\nrepeat (30)\n    change size by (((82) - (size)) / (3))\nend\nstop all sounds\nwait (0.3) seconds\nset size to (107) %\nstart sound [glitch sound v]\nstart sound [TOP10 GLITCH Sound Effect \[High Quality\].mp2 v]\nrepeat until <(costume [number v]) = [21]>\n    next costume\nend\nstart sound [bxsb v]\nstart sound [TOP10 GLITCH Sound Effect \[High Quality\].mp2 v]\nrepeat until <(costume [number v]) = [35]>\n    next costume\nend\nstart sound [explode 8bit v]\nstart sound [TOP10 GLITCH Sound Effect \[High Quality\].mp2 v]\nrepeat until <(costume [number v]) = [57]>\n    next costume\nend\nstart sound [TOP10 GLITCH Sound Effect \[High Quality\].mp2 v]\nrepeat until <(costume [number v]) = [81]>\n    next costume\nend\nhide\nstop all sounds\nbroadcast (Play Game v)\nreset timer\n\n@Thumbnail\n\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [play game v]\nset [deaths v] to [0]\n\nwhen this sprite clicked\nchange [level v] by (1)\nchange [skips used: v] by (1)\nset [deaths v] to [0]\nbroadcast (Reset v)\nbroadcast (Setup v)\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nif <(LEVEL) < [6]> then\n    go to [front v] layer\n    show\nelse\n    hide\nend\n\ngo to [front v] layer\n\n@Gears\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nturn right (5) degrees\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [480] y: [80]\n    Clone at x: [480] y: [-200]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [200] y: [80]\n        Clone at x: [0] y: [-200]\n        Clone at x: [400] y: [0]\n        Clone at x: [480] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [300] y: [80]\n            Clone at x: [180] y: [-200]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [300] y: [-120]\n                    Clone at x: [200] y: [200]\n                    Clone at x: [1150] y: [-200]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                    end\n                end\n            end\n        end\n    end\nend\n\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (360)\nnext costume\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\n@Turotial\n\nwhen I receive [play game v]\n\nshow\nrepeat until <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>>\n    go to [front v] layer\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    start sound [recording1 v]\n    switch costume to (costume2 v)\n    wait (0.5) seconds\nend\nwait (0.7) seconds\nrepeat until <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>>\n    go to [front v] layer\n    switch costume to (costume3 v)\n    wait (0.5) seconds\n    start sound [recording1 v]\n    switch costume to (costume4 v)\n    wait (0.5) seconds\nend\nwait (0.7) seconds\nrepeat until <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>>\n    go to [front v] layer\n    switch costume to (costume5 v)\n    wait (0.5) seconds\n    start sound [recording1 v]\n    switch costume to (costume6 v)\n    wait (0.5) seconds\nend\nhide\n\nwhen I receive [green flag v]\nhide\n\nstart sound [recording1 v]\n\n@Sprite2\n\nwhen I receive [play game v]\nshow\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (Open Store v)\n    show variable [total coins v]\nend\nif <(costume [number v]) = [2]> then\n    if <(1) < [1]> then\n        if <(TOTAL COINS) > [2]> then\n            set [1 v] to [1]\n            change [total coins v] by (-3)\n            broadcast (1 v)\n        else\n            show\n        end\n    else\n        broadcast (1 v)\n    end\nend\nif <(costume [number v]) = [3]> then\n    if <(2) > [0]> then\n        broadcast (2 v)\n    else\n        if <(TOTAL COINS) > [4]> then\n            set [2 v] to [1]\n            change [total coins v] by (-5)\n            broadcast (2 v)\n        end\n    end\nend\nif <(costume [number v]) = [4]> then\n    if <(3) > [0]> then\n        broadcast (3 v)\n    else\n        if <(TOTAL COINS) > [9]> then\n            set [3 v] to [1]\n            change [total coins v] by (-10)\n            broadcast (3 v)\n        end\n    end\nend\nif <(costume [number v]) = [5]> then\n    if <(4) > [0]> then\n        broadcast (4 v)\n    else\n        if <(TOTAL COINS) > [19]> then\n            set [4 v] to [1]\n            change [total coins v] by (-20)\n            broadcast (4 v)\n        end\n    end\nend\nif <(costume [number v]) = [6]> then\n    if <(5) > [0]> then\n        broadcast (5 v)\n    else\n        if <(TOTAL COINS) > [24]> then\n            set [5 v] to [1]\n            change [total coins v] by (-25)\n            broadcast (5 v)\n        end\n    end\nend\nif <(costume [number v]) = [7]> then\n    if <(6) > [0]> then\n        broadcast (6 v)\n    else\n        if <(TOTAL COINS) > [49]> then\n            set [6 v] to [1]\n            change [total coins v] by (-50)\n            broadcast (6 v)\n        end\n    end\nend\nif <(costume [number v]) = [8]> then\n    broadcast (Close Store v)\nend\n\nwhen flag clicked\ngo to x: (-71) y: (-105)\nswitch costume to (costume1 v)\nhide variable [total coins v]\nset [total coins v] to [0]\nhide\n\nwhen I receive [open store v]\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume4 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume5 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume6 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume7 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume8 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\n\nwhen I receive [close store v]\nswitch costume to (costume1 v)\nhide variable [total coins v]\ndelete this clone\n\n\n\nwhen I receive [reset v]\nswitch costume to (costume1 v)\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Bouncy\n\nwhen I receive [green flag v]\nhide variable [mouse v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Jump v]\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [995] y: [-92]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume1 v)\n        Clone at x: [770] y: [-92]\n        Clone at x: [872] y: [-92]\n        Clone at x: [974] y: [-92]\n        Clone at x: [1076] y: [-92]\n    else\n        if <(LEVEL) = [5]> then\n            switch costume to (costume1 v)\n            Clone at x: [517] y: [-93]\n            Clone at x: [1195] y: [-93]\n        end\n    end\nend\nset [x v] to [-999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [770] y: [-92]\nClone at x: [872] y: [-92]\nClone at x: [974] y: [-92]\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [1 v]\nswitch costume to (pinkfect v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [2 v]\nswitch costume to (pro v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [3 v]\nswitch costume to (black eye v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [4 v]\nswitch costume to (triangle eye v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [5 v]\nswitch costume to (evil eye v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [6 v]\nswitch costume to (fire master v)\nshow\nwait (2) seconds\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\n@Sprite5\n\nwhen flag clicked\nset [skips used: v] to [0]\nset [time v] to [0]\nhide\ngo to x: (0) y: (0)\nhide variable [time v]\nhide variable [skips used: v]\n\nwhen I receive [time v]\nshow\nshow variable [time v]\nset [time v] to (timer)\nshow variable [skips used: v]\n\n