Red; a platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\nbroadcast (Start! v)\nforever\n    reset timer\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) < [8]> then\n        play sound [Theme song \(first levels\) v] until done\n    else\n        if <(backdrop [number v]) > [11]> then\n            play sound [Theme song \(last levels\) v] until done\n        else\n            play sound [Theme song \(layer levels\) v] until done\n        end\n    end\nend\n\nwhen [timer v] > (0.4)\nswitch backdrop to (thumbnail v)\n\n@Red guy\n\nwhen backdrop switches to [thumbnail v]\nhide\n\nwhen I receive [start! v]\nshow\nforever\n    go to x: (-200) y: (-50)\n    repeat until <<<<touching (_edge_ v)?> and <(x position) > [0]>> and <(backdrop [number v]) < [13]>> and <(Boss defeated?) = [true]>>\n        if <<<<touching color (#804040)?> and <(backdrop [number v]) < [8]>> or <touching color (#7d7d7d)?>> and <not <touching color (#ffffff)?>>> then\n            broadcast (Start! v)\n            stop [this script v]\n        end\n        if <<<<touching (_edge_ v)?> and <(x position) < [0]>> and <not <(backdrop [number v]) = [2]>>> and <(Boss defeated?) = [true]>> then\n            switch backdrop to (previous backdrop v)\n            go to x: (200) y: (-90)\n        end\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<touching color (#7f0000)?> or <<touching color (#7f4040)?> or <touching color (#ffffff)?>>>> then\n            repeat (10)\n                change y by (10)\n                if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                    change x by (10)\n                end\n                if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                    change x by (-10)\n                end\n            end\n        end\n        if <not <<touching color (#7f0000)?> or <touching color (#7f4040)?>>> then\n            change y by (-10)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change x by (10)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change x by (-10)\n        end\n    end\n    next backdrop\nend\n\n@BOSS\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-65)\nswitch costume to (boss v)\nset [boss defeated? v] to [true]\nhide variable [boss hp v]\nwait until <(backdrop [number v]) = [11]>\nset [boss defeated? v] to [false]\nset [boss hp v] to [3]\nshow variable [boss hp v]\nshow\nrepeat until <(Boss HP) = [0]>\n    if <(x position) > ([x position v] of [red guy v])> then\n        point in direction (-90)\n    end\n    if <(x position) < ([x position v] of [red guy v])> then\n        point in direction (90)\n    end\n    move (5) steps\n    if <touching (red guy v)?> then\n        change [boss hp v] by (-1)\n        switch costume to (boss \(wounded\) v)\n        wait until <not <touching (red guy v)?>>\n        switch costume to (boss v)\n    end\nend\nswitch costume to (boss \(exploding!\) v)\nset [boss defeated? v] to [true]\nwait until <not <(backdrop [number v]) = [11]>>\nhide\nhide variable [boss hp v]\n\nwhen backdrop switches to [thumbnail v]\nhide\ngo to x: (0) y: (-65)\nset [boss defeated? v] to [true]\nhide variable [boss hp v]\n\nwhen I receive [start! v]\nif <(backdrop [number v]) = [11]> then\n    stop [other scripts in sprite v]\n    go to x: (0) y: (-65)\n    switch costume to (boss v)\n    set [boss defeated? v] to [false]\n    set [boss hp v] to [3]\n    show variable [boss hp v]\n    show\n    repeat until <(Boss HP) = [0]>\n        if <(x position) > ([x position v] of [red guy v])> then\n            point in direction (-90)\n        end\n        if <(x position) < ([x position v] of [red guy v])> then\n            point in direction (90)\n        end\n        move (5) steps\n        if <touching (red guy v)?> then\n            change [boss hp v] by (-1)\n            switch costume to (boss \(wounded\) v)\n            wait until <not <touching (red guy v)?>>\n            switch costume to (boss v)\n        end\n    end\n    switch costume to (boss \(exploding!\) v)\n    set [boss defeated? v] to [true]\n    wait until <not <(backdrop [number v]) = [11]>>\n    hide\n    hide variable [boss hp v]\nend\n\n
HEY GUYS! CHECK THIS OUT! https://scratch.mit.edu/studios/5798149/ This is a series I am very proud of, but hardly anyone has seen Please check it out!\nArrows or WASD to move.\nThe rest is explained (except how to beat the boss - that you'll have to figure out for yourself)\nALL LEVELS ARE 100% POSSIBLE!!! NO LAG!!!\nMar. 4 2019: WOW!!! THIS GAME EXPLODED TODAY!!! (not literally lol)\nMar. 18 2019: I open up my Chromebook, and guess what I see? 53 MESSAGES! A NEW RECORD! Thanks, guys!\nPLEASE DO NOT ADVERTISE!!!