// ѕєαя¢нιиg- A Platformer //
@Stage\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nswitch backdrop to (null v)\n\nwhen flag clicked\nswitch backdrop to (null v)\n\nwhen I receive [previous level v]\nswitch backdrop to (previous backdrop v)\n\nwhen I receive [next level v]\nswitch backdrop to (next backdrop v)\n\nwhen backdrop switches to [costume13 v]\nbroadcast (End Game v)\n\nwhen I receive [start v]\nswitch backdrop to (costume1 v)\n\n@Level\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [previous level v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nset size to (90) %\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Bossfight Start v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [end game v]\n\n@Spikes\n\nwhen flag clicked\n\nset size to (90) %\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen I receive [previous level v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <(backdrop [number v]) = [1]> then\n        go to x: (-38) y: (-115)\n    end\n    if <(backdrop [number v]) = [2]> then\n        go to x: (-38) y: (-115)\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\ngo to [front v] layer\n\n@Sound\n\nwhen flag clicked\ngo to [front v] layer\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen I receive [close menu v]\nhide\n\nwhen flag clicked\nwait (1) seconds\nforever\n    play sound [recording2 v] until done\nend\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [open menu v]\ngo to x: (204) y: (92)\nshow\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [1]> then\n    set volume to (100) %\nend\nif <(costume [number v]) = [2]> then\n    set volume to (0) %\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [open menu v]\ngo to x: (124) y: (142)\nshow\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Cheater! Lol XD v)\nbroadcast (Next Level v)\n\n@Restart\n\nwhen flag clicked\ngo to [front v] layer\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen this sprite clicked\nbroadcast (Restart v)\n\nwhen I receive [open menu v]\ngo to x: (146) y: (93)\nshow\n\nwhen this sprite clicked\nbroadcast (Restart v)\n\n@Menu\n\nwhen flag clicked\ngo to [front v] layer\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen flag clicked\ngo to x: (203) y: (141)\n\nwhen this sprite clicked\nif <(Menu ID) = [0]> then\n    broadcast (Open MENU v)\n    change [menu id v] by (1)\nelse\n    broadcast (Close MENU v)\n    change [menu id v] by (-1)\nend\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nset [menu id v] to [0]\n\n@Moving Platform\n\nwhen flag clicked\nset size to (90) %\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n        glide (1) secs to x: (-48) y: (-179)\n        repeat until <not <(backdrop [number v]) = [2]>>\n            glide (1) secs to x: (100) y: (-104.5)\n            glide (1) secs to x: (-48) y: (-179)\n        end\n    else\n        repeat (10)\n            hide\n        end\n    end\nend\n\n@Thumb\n\nwhen [timer v] > (0.0001)\nset [ghost v] effect to (0)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nrepeat (10)\n    go to [front v] layer\n    wait (0.05) seconds\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (Start v)\n\n@portal\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen I receive [start v]\nswitch costume to (costume2 v)\ngo to x: (212) y: (0)\ncreate clone of (_myself_ v)\nshow\nforever\n    turn right (2.5) degrees\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I start as a clone\nshow\nswitch costume to (costume4 v)\nforever\n    turn left (2.5) degrees\n    if <(backdrop [number v]) = [6]> then\n        go to x: (212) y: (55)\n    else\n        go to x: (212) y: (0)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(backdrop [number v]) = [6]> then\n        go to x: (212) y: (55)\n    else\n        go to x: (212) y: (0)\n    end\nend\n\n@glow\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\ngo [backward v] (1) layers\nset size to (25) %\nforever\n    go to (platformer boi v)\nend\n\nwhen flag clicked\nwait (8) seconds\nforever\n    if <[5] < (backdrop [number v])> then\n        show\n    else\n        hide\n    end\nend\n\n@Trampoline2\n\n@Platformer Boi\n\nwhen flag clicked\nshow\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen I receive [start v]\nforever\n    wait (6) seconds\n    broadcast (Blink v)\nend\n\nwhen I receive [restart v]\nset [x v] to [0]\nset [yv v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (-82)\nshow\n\nwhen flag clicked\nset size to (100) %\n\nwhen I start as a clone\nshow\nrepeat (15)\n    switch costume to (hello9 v)\n    change size by (-3)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\nwhen I receive [blink v]\nswitch costume to (hello5 v)\nrepeat (4)\n    wait (0.05) seconds\n    next costume\nend\nswitch costume to (hello5 v)\n\nwhen I receive [start v]\nswitch costume to (hello5 v)\nshow\ngo to x: (-232) y: (-101)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (1)\n        else\n            switch costume to (hello2 v)\n            change [x v] by (1)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (-1)\n        else\n            switch costume to (hello3 v)\n            change [x v] by (-1)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (moving platform v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platform v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platform v)?>> then\n                            change y by (1)\n                            if <<touching (level v)?> or <touching (moving platform v)?>> then\n                                change y by (-6)\n                                if <key (up arrow 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 (level v)?> or <touching (moving platform v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching (level v)?> or <touching (moving platform v)?>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n        if <[4] < (costume [number v])> then\n            set [y v] to [10]\n        else\n            set [y v] to [10]\n            switch costume to (hello4 v)\n        end\n    end\n    change y by (0.5)\n    if <<touching (spikes v)?> or <<touching (bew missiile v)?> or <<[-175] > (y position)> or <<touching (spiketrap v)?> or <<touching color (#ff0000)?> or <<touching (lazar v)?> or <<touching (boss v)?> or <<touching (lazar2 v)?> or <<touching (bomb v)?> or >>>>>>>>> then\n        change [deaths v] by (1)\n        start sound [Pew v]\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0.01) seconds\n        end\n        set [pixelate v] effect to (0)\n        set [ghost v] effect to (0)\n        set [x v] to [0]\n        set [yv v] to [0]\n        set [y v] to [0]\n        go to x: (-216) y: (-82)\n        show\n    end\nend\n\nwhen flag clicked\nset [x v] to [0]\nset [yv v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (-82)\nshow\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [previous level v]\nset [x v] to [0]\nset [yv v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (-82)\nshow\n\nwhen I receive [next level v]\nset [x v] to [0]\nset [yv v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (-82)\nshow\n\nwhen flag clicked\nhide\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <<touching (trampoline v)?> or <<touching (trampoline2 v)?> or <<touching (trampoline3 v)?> or <touching (trampoline4 v)?>>>> then\n        set [y v] to [15]\n    end\nend\n\nwhen flag clicked\nwait (7) seconds\n\nwhen this sprite clicked\nchange [color v] effect by (10)\n\nwhen flag clicked\nset [color v] effect to (0)\n\n@Bew MISSIILE\n\nwhen flag clicked\nhide\n\nwhen I receive [missile boiz v]\ncreate clone of (_myself_ v)\n\nforever\n    set rotation style [left-right v]\nend\n\nwhen I start as a clone\nshow\ngo to (cannon v)\npoint towards (platformer boi v)\nrepeat until <<touching (_edge_ v)?> or <<touching (level v)?> or <touching (platformer boi v)?>>>\n    move (8) steps\nend\ndelete this clone\n\n@Cannon\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [8]> then\n        wait (1) seconds\n        go to x: (103) y: (137)\n        show\n        repeat until <not <(backdrop [number v]) = [8]>>\n            wait (0.8) seconds\n            broadcast (MISSILE BOIZ v)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <[0.2] < (timer)> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@Leveltrap\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (platformer boi v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\n@Spiketrap\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        repeat until <not <(backdrop [number v]) = [9]>>\n            if <touching (platformer boi v)?> then\n                set [ghost v] effect to (0)\n            else\n                set [ghost v] effect to (99)\n            end\n        end\n    else\n        hide\n    end\nend\n\n\n\n@Lazar\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nshow\nforever\n    reset timer\nend\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <(backdrop [number v]) = [10]> then\n        show\n        switch costume to (costume1 v)\n        repeat until <not <(backdrop [number v]) = [10]>>\n            hide\n            wait (0.7) seconds\n            show\n            wait (0.7) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume2 v)\nrepeat until <not <(backdrop [number v]) = [10]>>\n    hide\n    wait (0.75) seconds\n    show\n    wait (0.75) seconds\nend\ndelete this clone\n\n@Boss\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\nset [boss health v] to [0]\n\nwhen I receive [bossfight start v]\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\nchange [boss health v] by (5)\n\nwhen I receive [next level v]\nif <not <(Boss Health) = [0]>> then\n    set [boss health v] to [0]\nend\n\nwhen I receive [boss dead v]\nswitch costume to (costume2 v)\nsay [No... NOOOOOOOOOO!] for (3) seconds\nsay [I will have my revenge on you, I swear!] for (4) seconds\nhide\n\nwhen I receive [restart v]\nif <not <(Boss Health) = [0]>> then\n    set [boss health v] to [5]\nend\n\n@Decor\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [6]> or <(costume [number v]) = [7]>> then\n        go to [front v] layer\n        wait (8) seconds\n    else\n        go to [back v] layer\n    end\nend\n\n@Lazar2\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    if <(backdrop [number v]) = [10]> then\n        show\n        repeat until <not <(backdrop [number v]) = [10]>>\n            hide\n            wait (0.7) seconds\n            show\n            wait (0.7) seconds\n        end\n    else\n        hide\n    end\nend\n\n@coin\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [bossfight start v]\nwait (1) seconds\nrepeat until <(Boss Health) = [0]>\n    wait (8) seconds\n    go to x: (-12) y: (-2)\n    show\n    switch costume to (costume1 v)\nend\n\nwhen I receive [boss dead v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (platformer boi v)?> then\n        change [boss health v] by (-1)\n        hide\n        wait (1) seconds\n    end\nend\n\n@Boss Attacks\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen I start as a clone\nif <(pick random (1) to (3)) = [1]> then\n    repeat (4)\n        go to [back v] layer\n        hide\n        go to x: (pick random (-190) to (30)) y: (-45)\n        set [x 'o' warnin v] to (x position)\n        set [y 'o' warnin v] to (y position)\n        switch costume to (2 v)\n        show\n        wait (0.5) seconds\n        broadcast (CMON SPIKE BOI v)\n        hide\n        wait (0.5) seconds\n    end\n    delete this clone\nend\nif <(pick random (1) to (3)) = [2]> then\n    repeat (3)\n        hide\n        wait (1) seconds\n        broadcast (Shoot BOIZ2 v)\n    end\n    delete this clone\nend\nif <(pick random (1) to (3)) = [3]> then\n    repeat (2)\n        wait (1.5) seconds\n        broadcast (SMOOSH v)\n    end\n    delete this clone\nend\n\nwhen I receive [bossfight start v]\nhide\nwait (1) seconds\nrepeat until <(Boss Health) = [0]>\n    repeat (2)\n        wait (pick random (4) to (4.5)) seconds\n        create clone of (_myself_ v)\n    end\nend\nif <(Boss Health) = [0]> then\n    hide\n    broadcast (Boss Dead v)\nend\n\nwhen flag clicked\nset [x 'o' warnin v] to [0]\nset [y 'o' warnin v] to [0]\n\nbroadcast (coin BOI COME OUT v)\n\n@Bomb\n\nwhen I start as a clone\nset size to (100) %\nswitch costume to (costume9 v)\ngo to x: (pick random (-160) to (5)) y: (100)\npoint in direction (180)\nshow\nrepeat until <<touching (_edge_ v)?> or <<touching (level v)?> or <touching (platformer boi v)?>>>\n    move (10) steps\nend\npoint in direction (90)\nset size to (200) %\nchange y by (-10)\nrepeat (8)\n    wait (0.05) seconds\n    next costume\nend\nhide\ndelete this clone\n\nwhen I receive [shoot boiz2 v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Sprite2\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen I receive [smoosh v]\nrepeat (2)\n    hide\n    switch costume to (costume1 v)\n    go to x: (pick random (-130) to (5)) y: (110)\n    show\n    wait (1) seconds\n    change y by (-80)\n    wait (0.5) seconds\nend\nhide\n\nwhen flag clicked\nhide\n\n@spike boi\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen I receive [cmon spike boi v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nset x to (X 'O' WARNIN)\nset y to (y 'o' warnin)\nwait (0.05) seconds\nshow\nwait (0.4) seconds\nhide\n\n@da diamond\n\nwhen I receive [end game v]\nif <(Timey) < (☁ Time Highscore)> then\n    set [☁ time highscore v] to (Timey)\n    set [☁ time highscore holder v] to (username)\nend\n\nwhen I receive [end game v]\nif <(Deaths) < (☁ HighScore of Deaths)> then\n    set [☁ highscore of deaths v] to (Deaths)\n    set [☁ deaths record holder v] to (username)\nend\n\nwhen flag clicked\nset [deaths v] to [0]\nset [timey v] to [0]\n\nwhen flag clicked\nset voice to (tenor v)::tts\n\nwhen I receive [start v]\nrepeat until <(backdrop [number v]) = [13]>\n    wait (0.01) seconds\n    change [timey v] by (0.01)\nend\n\nwhen I receive [end game v]\nspeak [Your time was...]::tts\nspeak (Timey)::tts\nspeak [The Highscore time is...]::tts\nspeak (☁ Time Highscore)::tts\nspeak [The current record holder is...]::tts\nspeak (username)::tts\nspeak [Your time was...]::tts\nspeak (Deaths)::tts\nspeak [The Highscore Deaths are]::tts\nspeak (☁ HighScore of Deaths)::tts\nspeak [The current record holder is...]::tts\nspeak (username)::tts\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (platformer boi v)?> then\n        broadcast (End Game v)\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [cheater! lol xd v]\nchange [deaths v] by (5)\nchange [timey v] by (10)\n\n
---===ѕєαя¢нιиg===--\nPlease ❤️and ⭐️ to support this project! \n---===Controls and Instructions===---\nUse WASD, Arrow Keys, or Mobile Mode!\n*Click Character To Change Color!!*\nAvoid:\n~Spikes\n~Voids\n~The Boss\n~Boss Attacks\n~Try to get to the portal to go to the next level!\n~During the bossfight, try to get the coins. They reduce the boss' health.\n~You can walljump.\n~Click the Menu button to open the Menu and Skip, Restart, Turn off Music, Go Back, and Close Menu.\n~There are highscores. Skipping won't help. Ha. Take that, cheaters.\nADVERTISERS, BEWARE!\n*The project needs your username for highscores*\n--Milestones--\n100 views?\n40 loves? wow.\n60 loves! \n200 views!\nON 60TH ON TRENDING FOR GAMES!!!!!!!!!!!!!!!\n300 views. BRUH.\n70 loves in less than a day and a half 0_o\n400 views!\n800 views and 130 loves .___________.\n150 loves and 1,200 views >.<\n190 loves and 1,900 views XD\n200 loves, 2000 views!\n350 loves and 4,500 views '.'