Platformer!


@Stage\n\n@Ninja\n\nwhen flag clicked\nhide variable [level v]\nclear graphic effects\nhide\nset size to (100) %\nswitch backdrop to (lvl 1 v)\nset [levelcounter v] to [1]\ngo to x: (-214) y: (-111)\n\nwhen I receive [restart v]\ngo to x: (-214) y: (-111)\nset [levelcounter v] to [1]\n\nwhen flag clicked\nset [musicon? v] to [True]\nrepeat until <(MusicOn?) = [False]>\n    play sound [otherworld v] until done\nend\n\nwhen I receive [shrink v]\nset size to (75) %\n\nwhen I receive [normalsuit v]\nswitch costume to (ninja dark suit v)\n\nwhen I receive [valentinesskinequip v]\nswitch costume to (ninja valentines suit v)\n\nwhen I receive [stpatricksequip v]\nswitch costume to (ninja st. patrick's suit v)\n\nwhen I receive [easterequip v]\nswitch costume to (ninja easter suit v)\n\nwhen I receive [world1equip v]\nswitch costume to (ninja world 1 suit v)\n\nwhen I receive [world2equip v]\nswitch costume to (ninja world 2 suit test v)\n\nwhen I receive [world#equip v]\nswitch costume to (ninja world 3 suit v)\n\nwhen [m v] key pressed\nset [musicon? v] to [False]\nstop all sounds\n\nwhen I receive [world4equip v]\nswitch costume to (ninja world 4 suit v)\n\nwhen I receive [vip skin equip v]\nswitch costume to (ninja vip suit v)\n\nwhen I receive [stpatricksvip v]\nswitch costume to (ninja st. patrick's vip suit v)\n\nwhen I receive [stpatricksvip v]\nswitch costume to (ninja st. patrick's vip suit v)\n\nwhen I receive [start v]\nshow variable [level v]\ngo to x: (-214) y: (-111)\nwait (0.5) seconds\nshow\nif <(username) = [jp_fox]> then\n    switch costume to (ninja jp_fox suit v)\nelse\n    switch costume to (ninja dark suit v)\nend\nforever\n    set [level v] to (join [Level ] (join (LevelCounter) [/80]))\n    change [yv v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (0.7)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.7)\n        point in direction (90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n        change y by (1)\n        if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n            change y by (1)\n            if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n                change y by (1)\n                if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n                    change y by (1)\n                    if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n                        change y by (1)\n                        if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> then\n                                start sound [jump v]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#00cd0e)?> or <touching color (#000000)?>> or <<<touching color (#ffce93)?> or <touching color (#ffba65)?>> or <touching color (#e5e5e5)?>>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> then\n            start sound [jump v]\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <<touching color (#fff300)?> or <touching color (#fffc00)?>> then\n        broadcast (message2 v)\n        change [levelcounter v] by (1)\n        wait (0.01) seconds\n        switch backdrop to (next backdrop v)\n        go to x: (-215) y: (-118)\n    end\n    if <touching color (#3791ff)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n            set [yv v] to [5]\n        else\n            set [yv v] to [-1]\n        end\n    end\n    if <touching color (#ff0000)?> then\n        if <(Hardcore) = [Hardcore!]> then\n            start sound [bxsb v]\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n            stop [all v]\n        else\n            start sound [bxsb v]\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            go to x: (-214) y: (-118)\n            clear graphic effects\n        end\n    end\n    if <touching color (#d91cc4)?> then\n        start sound [bxsb v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        stop [all v]\n    end\n    if <(y position) < [-169]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        stop [all v]\n    end\n    if <(backdrop [number v]) > [63]> then\n        set size to (75) %\n    end\n    if <(backdrop [number v]) = [1]> then\n        set [levelcounter v] to [1]\n    end\nend\n\n@Button\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [Lvl 37]>\nshow\nwait until <(backdrop [name v]) = [Lvl 38]>\nhide\n\nwhen this sprite clicked\nswitch backdrop to (lvl 1 v)\nbroadcast (Restart v)\nhide\n\n@Cage\n\nwhen flag clicked\nclear graphic effects\ngo to x: (198) y: (-125)\nhide\nwait until <(backdrop [name v]) = [Lvl 37]>\nshow\nwait (10) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [restart v]\nhide\n\n@ShrinkButton\n\nwhen flag clicked\ngo to x: (-8) y: (44)\nhide\nwait until <(backdrop [name v]) = [Lvl 62]>\nshow\n\nwhen this sprite clicked\nbroadcast (Shrink v)\nhide\n\n@Skins\n\nwhen I receive [skinsclose v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nhide\n\nwhen [e v] key pressed\nbroadcast (Shop v)\nshow\n\n@Normal\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        think [Click To Equip] for (0.01) seconds\n    end\nend\n\nwhen this sprite clicked\nbroadcast (NormalSuit v)\n\n@VIP\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    switch costume to (locked v)\n    if <touching (mouse-pointer v)?> then\n        if <[vip v] contains (username)?> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[VIP\] Ask For VIP In The Comments] for (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [skinsclose v]\nhide\n\nwhen this sprite clicked\nif <[vip v] contains (username)?> then\n    broadcast (VIP Skin Equip v)\nend\n\nwhen flag clicked\nforever\n    if <[vip v] contains (username)?> then\n        switch costume to (normal v)\n    end\nend\n\nwhen flag clicked\ndelete all of [vip v]\nadd [0Danielito] to [vip v]\nadd [0DanielitoTest] to [vip v]\nadd [_XEchoX_] to [vip v]\nadd [BsballKied] to [vip v]\nadd [21achandra] to [vip v]\nadd [Meepy_20] to [vip v]\nadd [BallGamer4140] to [vip v]\nadd [ZMTVTEST] to [vip v]\nadd [ColeMyPup] to [vip v]\nadd [ZMTV] to [vip v]\nadd [EpicCoderDude7] to [vip v]\nadd [leapstudent] to [vip v]\nadd [Cgg031711] to [vip v]\nadd [ Crispy_Otter26] to [vip v]\nadd [Ninjathanos12] to [vip v]\nadd [zxyxcckvlb] to [vip v]\nadd [rishaandas] to [vip v]\n\n@World1\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(LevelCounter) > [20]> or <(username) = [0Danielito]>> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[Common\] Beat World 1 To Obtain This] for (0.01) seconds\n        end\n    end\nend\n\nwhen this sprite clicked\nif <<(LevelCounter) > [20]> or <(username) = [0Danielito]>> then\n    broadcast (World1Equip v)\nend\n\nwhen flag clicked\nforever\n    if <(LevelCounter) > [20]> then\n        switch costume to (normal v)\n    end\nend\n\n@World2\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(LevelCounter) > [40]> or <(username) = [0Danielito]>> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[Uncommon\] Beat World 2 To Obtain This] for (0.01) seconds\n        end\n    end\nend\n\nwhen this sprite clicked\nif <<(LevelCounter) > [40]> or <(username) = [0Danielito]>> then\n    broadcast (World2Equip v)\nend\n\nwhen flag clicked\nforever\n    if <(LevelCounter) > [40]> then\n        switch costume to (normal v)\n    end\nend\n\n@World3\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(LevelCounter) > [60]> or <(username) = [0Danielito]>> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[Rare\] Beat World 3 To Obtain This] for (0.01) seconds\n        end\n    end\nend\n\nwhen this sprite clicked\nif <<(LevelCounter) > [60]> or <(username) = [0Danielito]>> then\n    broadcast (World#Equip v)\nend\n\nwhen flag clicked\nforever\n    if <(LevelCounter) > [60]> then\n        switch costume to (normal v)\n    end\nend\n\n@World4\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(LevelCounter) > [80]> or <(username) = [0Danielito]>> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[Legendary\] Beat World 4 To Obtain This] for (0.01) seconds\n        end\n    end\nend\n\nwhen this sprite clicked\nif <<(LevelCounter) > [80]> or <(username) = [0Danielito]>> then\n    broadcast (World4Equip v)\nend\n\nwhen flag clicked\nforever\n    if <(LevelCounter) > [80]> then\n        switch costume to (normal v)\n    end\nend\n\n@World5\n\nwhen I receive [skinsclose v]\nhide\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        think [\[Mythic\] Beat World 5 To Obtain This] for (0.01) seconds\n    end\nend\n\n@Valentines\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nrepeat (2)\n    switch costume to (locked v)\nend\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <[valentinesskin v] contains (username)?> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [\[Mythic\] This Could Have Only Be Obtained During The 2020 Valentines Event] for (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [skinsclose v]\nhide\n\nwhen flag clicked\ndelete all of [valentinesskin v]\nadd [0Danielito] to [valentinesskin v]\nadd [lnceptionTime] to [valentinesskin v]\nadd [0DanielitoTest] to [valentinesskin v]\nadd [Soybeen] to [valentinesskin v]\nadd [cbgodsie24] to [valentinesskin v]\nadd [Dinoelino29] to [valentinesskin v]\nadd [jp_fox] to [valentinesskin v]\nadd [BsballKied] to [valentinesskin v]\nadd [_XEchoX_] to [valentinesskin v]\nadd [0danielino] to [valentinesskin v]\nadd [xXRedWolfGamerXx] to [valentinesskin v]\n\nwhen this sprite clicked\nif <[valentinesskin v] contains (username)?> then\n    broadcast (ValentinesSkinEquip v)\nend\n\nwhen flag clicked\nforever\n    if <[valentinesskin v] contains (username)?> then\n        switch costume to (normal v)\n    end\nend\n\n@StPatricks\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (locked v)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <[stpatricksskin v] contains (username)?> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [This Could Have Only Been Obtained During The 2020 St. Patricks Event!] for (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [skinsclose v]\nhide\n\nwhen flag clicked\ndelete all of [stpatricksskin v]\nadd [0Danielito] to [stpatricksskin v]\nadd [0DanielitoTest] to [stpatricksskin v]\nadd [_XEchoX_] to [stpatricksskin v]\nadd [jp_fox] to [stpatricksskin v]\nadd [BsBallKied] to [stpatricksskin v]\n\nwhen this sprite clicked\nif <[stpatricksskin v] contains (username)?> then\n    broadcast (StPatricksEquip v)\nend\n\nwhen flag clicked\nforever\n    if <[stpatricksskin v] contains (username)?> then\n        switch costume to (normal v)\n    end\nend\n\n@StPatricksVIP\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (locked v)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <[stpatricksvip v] contains (username)?> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [This Could Have Only Been Obtained During The 2020 St. Patricks Event!] for (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [skinsclose v]\nhide\n\nwhen flag clicked\ndelete all of [stpatricksvip v]\nadd [0Danielito] to [stpatricksvip v]\nadd [0DanielitoTest] to [stpatricksvip v]\nadd [_XEchoX_] to [stpatricksvip v]\nadd [BsballKied] to [stpatricksvip v]\n\nwhen this sprite clicked\nif <[stpatricksvip v] contains (username)?> then\n    broadcast (StPatricksVIP v)\nend\n\nwhen flag clicked\nforever\n    if <[stpatricksvip v] contains (username)?> then\n        switch costume to (normal v)\n    end\nend\n\n@Easter\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (locked v)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <[easterskin v] contains (username)?> then\n            switch costume to (normal v)\n            think [Click To Equip] for (0.01) seconds\n        else\n            switch costume to (locked v)\n            think [This Could Have Only Been Obtained By The 2020 Easter Event] for (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [skinsclose v]\nhide\n\nwhen flag clicked\ndelete all of [easterskin v]\nadd [0Danielito] to [easterskin v]\nadd [lnceptionTime] to [easterskin v]\nadd [0DanielitoTest] to [easterskin v]\nadd [Soybeen] to [easterskin v]\nadd [cbgodsie24] to [easterskin v]\nadd [Dinoelino29] to [easterskin v]\nadd [jp_fox] to [easterskin v]\nadd [BsballKied] to [easterskin v]\nadd [_XEchoX_] to [easterskin v]\nadd [0danielino] to [easterskin v]\nadd [xXRedWolfGamerXx] to [easterskin v]\n\nwhen this sprite clicked\nif <[easterskin v] contains (username)?> then\n    broadcast (EasterEquip v)\nend\n\n@BackButton\n\nwhen I receive [shop v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (SkinsClose v)\nhide\n\n@gamemode\n\nwhen flag clicked\nswitch costume to (selectgamemode v)\ngo to [back v] layer\nclear graphic effects\nshow\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nswitch costume to (newthumbnail v)\ngo to [front v] layer\n\n@NormalGamemode\n\nwhen flag clicked\ngo to x: (-88) y: (-70)\nset [hardcore v] to [False]\nclear graphic effects\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((110) - (size)) / (3))\n    else\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen this sprite clicked\nset [hardcore v] to [False]\nbroadcast (Start v)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        think [Standard, Infinite lives!] for (0.01) seconds\n    end\nend\n\n@HardcoreGamemode\n\nwhen flag clicked\ngo to x: (89) y: (-70)\nhide variable [hardcore v]\nclear graphic effects\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((110) - (size)) / (3))\n    else\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen this sprite clicked\nset [hardcore v] to [Hardcore!]\nshow variable [hardcore v]\nbroadcast (Start v)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        think [You only have ONE life!] for (0.01) seconds\n    end\nend\n\n@Rain\n\nwhen flag clicked\nset [ghost v] effect to (20)\nhide\nwait until <(LevelCounter) > [10]>\nshow\nrepeat until <(LevelCounter) > [16]>\n    next costume\n    wait (0.5) seconds\nend\nhide\n\n