MHA Platformer

Instructions: ~ w, a, d or <, >, ^ \n~ space to attack, use your quirk and such \n~ Avoid the Warp Gates!\n~ Avoid Dabi's blue flames \n~ Avoid spikes and spiky wheels \n~ Touch the purple on the edge of the screen to get to the next level [Look closely, because sometimes the purple isn't always on the right side] \n~ When walls appear, you can break them by changing your costume to Deku or Kirishima, touching the wall and press space \n\nDeku: \n~ When touching an enemy, press space and, as Deku, you will attack it \n~ When touching a wall, to break it, press space until it breaks \n\nJiro: \n~ To attack, press space and, as Jiro, you will send a sound boom \n\nKirishima: \n~ When you touch an enemy and you want to attack it, you just press space and the enemy will break and disappear \n\nTodoroki: \n~ Press space and i keys to attack an enemy when touching it \n~ Press space and f keys to attack an enemy when touching it \n~ Press space, i and down keys to freeze the ground and slide on it \n\nTsuyu: \n~ When ^/up key pressed she will jump higher than others, like a frog\n ~ When she touches water she will immediately swim across it, unlike other characters who would drown \n\nUraraka: \n~ When ^/up key pressed she will pause then float up for a while \n\nIida: ~ When >/right or </left keys are pressed he will run significantly faster than the others \n\nDenki: \n~ When touching an enemy, press space and, as Denki, you will attack it\n\n P.S. Have fun!!!

@Stage\n\n@characters\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (deku  v)\ngo to x: (-215) y: (-65)\nswitch backdrop to (gamma gym v)\nset [deaths: v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x v] by (0.75)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> and <(costume [name v]) = [iida]>> then\n        change [x v] by (3)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by (-0.75)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> and <(costume [name v]) = [iida]>> then\n        change [x v] by (-3)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#33332e)?> then\n        change y by (1)\n        if <touching color (#33332e)?> then\n            change y by (1)\n            if <touching color (#33332e)?> then\n                change y by (1)\n                if <touching color (#33332e)?> then\n                    change y by (1)\n                    if <touching color (#33332e)?> then\n                        change y by (1)\n                        if <touching color (#33332e)?> then\n                            change y by (1)\n                            if <touching color (#33332e)?> then\n                                change y by (-5)\n                                change x by ((x) * (-1))\n                                if <<key (w v) pressed?> or <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                                    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 (#33332e)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#33332e)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [8]\n    end\n    if <<touching color (#33332e)?> and <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(costume [name v]) = [tsuyu]>>> then\n        set [y v] to [15]\n    end\n    if <<<touching color (#33332e)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> and <(costume [name v]) = [ochaco]>> then\n        set [y v] to [20]\n        wait (2) seconds\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        go to x: (-214) y: (-50)\n        change [deaths: v] by (1)\n        delete this clone\n    end\n    if <touching color (#5d0087)?> then\n        broadcast (next stage v)\n        go to x: (-214) y: (-50)\n        delete this clone\n    end\nend\n\nwhen I receive [next costume v]\nif <(costume [number v]) = [9]> then\n    switch costume to (tsuyu v)\nend\n\nwhen I receive [defeat enemy v]\nswitch costume to (deku  v)\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [1]> and <touching color (#2ca1ff)?>> then\n        go to x: (x position) y: (y position)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (water v)?> or <touching (water2 v)?>> and <not <(costume [number v]) = [1]>>> then\n        glide (0.02) secs to x: (110) y: (-166)\n        repeat (10)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#2ca1ff)?> and <(costume [number v]) = [1]>> then\n        repeat until <not <touching color (#2ca1ff)?>>\n            change x by (10)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <key (i v) pressed?>> then\n        if <(costume [number v]) = [8]> then\n            if <touching color (#794705)?> then\n                change x by (-3)\n                if <touching color (#794705)?> then\n                    change x by (-3)\n                    if <touching color (#794705)?> then\n                        change x by (-3)\n                        if <touching color (#794705)?> then\n                            change x by (-3)\n                            if <touching color (#794705)?> then\n                                change x by (-3)\n                                if <touching color (#794705)?> then\n                                    change x by (-3)\n                                    if <touching color (#794705)?> then\n                                        change x by (-3)\n                                        switch costume to (todoroki 2 v)\n                                        broadcast (defeat enemy3 v)\n                                        switch costume to (todoroki  v)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <key (f v) pressed?>> then\n        if <(costume [number v]) = [8]> then\n            if <touching color (#794705)?> then\n                change x by (-3)\n                if <touching color (#794705)?> then\n                    change x by (-3)\n                    if <touching color (#794705)?> then\n                        change x by (-3)\n                        if <touching color (#794705)?> then\n                            change x by (-3)\n                            if <touching color (#794705)?> then\n                                change x by (-3)\n                                if <touching color (#794705)?> then\n                                    change x by (-3)\n                                    if <touching color (#794705)?> then\n                                        change x by (-3)\n                                        switch costume to (todoroki 3 v)\n                                        wait (0.07) seconds\n                                        broadcast (defeat enemy4 v)\n                                        switch costume to (todoroki  v)\n                                        go to x: (x position) y: (y position)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <<key (i v) pressed?> and <key (down arrow v) pressed?>>> then\n        if <(costume [number v]) = [8]> then\n            switch costume to (todoroki 2 v)\n            broadcast (slide v)\n            switch costume to (todoroki  v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <not <touching (ice floor v)?>>\n        change x by (10)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(costume [number v]) = [5]> then\n            if <touching color (#794705)?> then\n                change x by (-3)\n                if <touching color (#794705)?> then\n                    change x by (-3)\n                    if <touching color (#794705)?> then\n                        change x by (-3)\n                        if <touching color (#794705)?> then\n                            change x by (-3)\n                            if <touching color (#794705)?> then\n                                change x by (-3)\n                                if <touching color (#794705)?> then\n                                    change x by (-3)\n                                    if <touching color (#794705)?> then\n                                        change x by (-3)\n                                        switch costume to (deku 2 v)\n                                        repeat (2)\n                                            wait (0.05) seconds\n                                            switch costume to (deku 3 v)\n                                            wait (0.05) seconds\n                                            next costume\n                                            broadcast (defeat enemy v)\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(costume [number v]) = [6]> then\n            broadcast (sound boom v)\n        end\n    end\nend\n\nwhen I receive [sound boom v]\nswitch costume to (jiro 2 v)\nrepeat (2)\n    wait (0.05) seconds\n    next costume\nend\nswitch costume to (jiro  v)\n\nwhen flag clicked\nforever\n    if <color (#f7f8f9) is touching (#794705)?> then\n        broadcast (sound boom defeat v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(costume [number v]) = [7]> then\n            if <touching color (#794705)?> then\n                change x by (-3)\n                if <touching color (#794705)?> then\n                    change x by (-3)\n                    if <touching color (#794705)?> then\n                        change x by (-3)\n                        if <touching color (#794705)?> then\n                            change x by (-3)\n                            if <touching color (#794705)?> then\n                                change x by (-3)\n                                if <touching color (#794705)?> then\n                                    change x by (-3)\n                                    if <touching color (#794705)?> then\n                                        change x by (-3)\n                                        broadcast (sound boom defeat v)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (rift  v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [ghost v] effect to (0)\n        show\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen I receive [next stage v]\ngo to x: (-215) y: (-65)\n\nwhen [space v] key pressed\nif <touching (wall v)?> then\n    if <<(costume [number v]) = [5]> or <(costume [number v]) = [7]>> then\n        broadcast (wall break v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (rift 3 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [ghost v] effect to (0)\n        show\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (rift 2 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [ghost v] effect to (0)\n        show\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#aeaeae)?> then\n        change x by (-1)\n        if <touching color (#aeaeae)?> then\n            change x by (-1)\n            if <touching color (#aeaeae)?> then\n                change x by (-1)\n                if <touching color (#aeaeae)?> then\n                    change x by (-1)\n                    if <touching color (#aeaeae)?> then\n                        change x by (-1)\n                        if <touching color (#aeaeae)?> then\n                            change x by (-1)\n                            if <touching color (#aeaeae)?> then\n                                change x by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (dabi fire v)?> then\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#6b1212)?> then\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (rift4 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [ghost v] effect to (0)\n        show\n        go to x: (-215) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [denki]> then\n        if <key (space v) pressed?> then\n            switch costume to (denki 2 v)\n            repeat (2)\n                wait (0.05) seconds\n                switch costume to (denki 3 v)\n                wait (0.05) seconds\n                next costume\n                broadcast (defeat enemy2 v)\n                switch costume to (denki v)\n            end\n        end\n    end\nend\n\n@level\n\nwhen flag clicked\nshow\nswitch costume to (level1 v)\n\nwhen I receive [next stage v]\nnext costume\n\nwhen I receive [next stage v]\nif <(costume [name v]) = [level2]> then\n    broadcast (show enemy v)\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [2]>> then\n        broadcast (hide enemy v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (wall break 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [6]>> then\n        broadcast (wall disappear v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (rift2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (rift appear v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [5]>> then\n        broadcast (rift disappear v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [7]>> then\n        broadcast (hide rift v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [8]>> then\n        broadcast (hide rift 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (hide next stage button v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [3]>> then\n        broadcast (hide water1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [6]>> then\n        broadcast (hide water2 v)\n    end\nend\n\nwhen I receive [next stage v]\nif <(costume [number v]) = [8]> then\n    broadcast (rift3 v)\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (spiky1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [9]>> then\n        broadcast (no more spiky v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (no fire v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        wait (3) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (hide text v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (bye bye v)\n    end\nend\n\n@Sprite1\n\nwhen this sprite clicked\nbroadcast (next costume v)\n\nwhen flag clicked\nshow\ngo to x: (-211) y: (143)\n\n@enemy\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [defeat enemy v]\nhide\nwait (1) seconds\nshow\n\nwhen I receive [defeat2 v]\nif <not <touching (characters v)?>> then\n    hide\n    wait (1) seconds\n    show\nend\n\nwhen I receive [show enemy v]\nshow\n\nwhen I receive [defeat enemy2 v]\nhide\nwait (1) seconds\nshow\n\nwhen I receive [defeat enemy3 v]\nswitch costume to (costume3 v)\nwait (1) seconds\nhide\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [defeat enemy4 v]\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume5 v)\nwait (1) seconds\nhide\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [hide enemy v]\nhide\nwait (1) seconds\nshow\n\nwhen I receive [sound boom defeat v]\nswitch costume to (costume4 v)\nwait (1) seconds\nhide\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\n\nhide\n\n@wall\n\nwhen I receive [wall break v]\nnext costume\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\npoint in direction (90)\n\nwhen I receive [wall break 2 v]\nshow\n\nwhen I receive [wall disappear v]\nhide\n\nwhen I receive [rift3 v]\nswitch costume to (costume1 v)\ngo to x: (-88) y: (44)\nshow\n\n@ice floor\n\nwhen flag clicked\nhide\n\nwhen I receive [slide v]\nshow\ngo to (characters v)\n\nwhen flag clicked\nforever\n    if <not <touching (characters v)?>> then\n        hide\n    end\nend\n\n@rift \n\nwhen flag clicked\nhide\n\nwhen I receive [rift appear v]\ngo to x: (-70) y: (-147)\nshow\n\nwhen I receive [rift disappear v]\nhide\n\n@rift 2\n\nwhen I receive [hide rift v]\nhide\n\nwhen I receive [rift2 v]\nswitch costume to (costume2 v)\ngo to x: (-34) y: (-47)\nshow\n\nwhen flag clicked\nhide\n\n@rift 3\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [hide rift 2 v]\nhide\n\nwhen I receive [rift3 v]\ngo to x: (-225) y: (-48)\nswitch costume to (costume3 v)\nshow\n\n@rift4\n\nwhen flag clicked\nhide\ngo to x: (184) y: (96)\n\nwhen I receive [spiky1 v]\nshow\n\nwhen I receive [no more spiky v]\nhide\n\n@water\n\nwhen flag clicked\nhide\n\nwhen I receive [hide next stage button v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [hide water1 v]\nhide\n\n@water2\n\nwhen flag clicked\nhide\n\nwhen I receive [wall break 2 v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [hide water2 v]\nhide\n\n@dabi fire\n\nwhen I receive [rift3 v]\nswitch costume to (costume1 v)\ngo to x: (-98) y: (-32)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [spiky1 v]\ngo to x: (46) y: (-32)\nswitch costume to (costume2 v)\n\nwhen I receive [no fire v]\nhide\n\n@spiky wheel thingy\n\nwhen flag clicked\nhide\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [spiky1 v]\nshow\n\nwhen I receive [no more spiky v]\nhide\n\n@text\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nrepeat (2)\n    wait (10) seconds\n    next costume\nend\nwait (10) seconds\nhide\n\nwhen I receive [hide text v]\nhide\n\nwhen I receive [hide next stage button v]\nswitch costume to (costume4 v)\nshow\n\nwhen I receive [bye bye v]\nswitch costume to (costume5 v)\nshow\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\nend\n\n