#2 space platformer #all #games
@Stage\n\nwhen flag clicked\nset [score v] to [0]\nforever\n    play sound [Throw Down.mp3 v] until done\nend\n\nwhen I receive [end v]\nforever\n    if <<(score) < (☁ ☁ LOW score)> and <(score) < [300]>> then\n        set [☁ ☁ low score v] to (score)\n    end\nend\n\nwhen I receive [start score v]\nrepeat until <(Level) = [7]>\n    wait (1) seconds\n    change [score v] by (1)\nend\n\n@player shadow\n\nwhen flag clicked\nhide variable [ghost v]\nset [level v] to [0]\nforever\n    if <<<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> and <(ghost) = [1]>> then\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (_edge_ v)?> and <(x) > [200]>> then\n        broadcast (Loading v)\n        change [level v] by (1)\n        go to x: (-208) y: (-132)\n        wait (0.2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    set [x v] to (x position)\nend\n\nwhen I receive [start v]\ngo to x: (-208) y: (-132)\nshow\npoint in direction (90)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume14 v)\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume15 v)\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            if <touching (_edge_ v)?> then\n                                change x by (Change)\n                            end\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <not <touching color (#00ff55)?>> then\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                                end\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 (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (_edge_ v)?> then\n        change x by (Change)\n    end\n    if <touching (platform v)?> then\n        if <key (up arrow v) pressed?> then\n            if <not <touching color (#00ff55)?>> then\n                set [yv v] to [10]\n            end\n        end\n    end\n    if <touching color (#ffffcc)?> then\n        go to x: (-208) y: (-132)\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@platform\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    if <(Level) = [0]> then\n        show\n        switch costume to (play v)\n    end\n    if <(Level) = [1]> then\n        broadcast (start score v)\n        switch costume to (start-up v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 4 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [7]> then\n        broadcast (end v)\n        switch costume to (level 6 v)\n    end\nend\n\n@light\n\ndefine level 2\nrepeat until <(Level) = [3]>\n    if <(Level) = [3]> then\n        hide\n        stop [this script v]\n    end\n    show\n    switch costume to (costume1 v)\n    go to x: (-48) y: (-14)\n    wait (1) seconds\n    switch costume to (costume2 v)\n    go to x: (94) y: (-14)\n    wait (1) seconds\n    switch costume to (costume3 v)\n    go to x: (212) y: (-15)\n    wait (1) seconds\nend\n\ndefine level 1\nhide\n\ndefine level 7\nhide\n\ndefine level 3\nswitch costume to (costume4 v)\nrepeat until <(Level) = [4]>\n    if <(Level) = [4]> then\n        hide\n        stop [this script v]\n    end\n    show\n    go to x: (87) y: (-60)\n    wait (1) seconds\n    go to x: (-103) y: (0)\n    wait (1) seconds\n    go to x: (93) y: (68)\n    wait (1) seconds\n    go to x: (-104) y: (107)\n    wait (1) seconds\nend\n\nwhen I receive [start v]\nforever\n    if <(Level) = [1]> then\n        level 1\n    end\n    if <(Level) = [2]> then\n        level 2\n    end\n    if <(Level) = [3]> then\n        level 3\n    end\n    if <(Level) = [4]> then\n        level 4\n    end\n    if <(Level) = [5]> then\n        level 5\n    end\n    if <(Level) = [6]> then\n        level 6\n    end\n    if <(Level) = [7]> then\n        level 7\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\n\ndefine level 4\nshow\nswitch costume to (costume6 v)\nrepeat until <(Level) = [5]>\n    if <(Level) = [5]> then\n        hide\n        stop [this script v]\n    end\n    go to x: (8) y: (-131)\n    wait (0.2) seconds\n    go to x: (-124) y: (-89)\n    wait (0.2) seconds\n    go to x: (114) y: (-40)\n    wait (0.2) seconds\n    go to x: (-41) y: (-26)\n    wait (0.2) seconds\n    go to x: (-137) y: (37)\n    wait (0.2) seconds\n    go to x: (182) y: (49)\n    wait (0.2) seconds\n    go to x: (20) y: (76)\nend\n\ndefine level 5\ngo to x: (-61) y: (-31)\nshow\nswitch costume to (costume5 v)\ncreate clone of (_myself_ v)\nrepeat until <(Level) = [6]>\n    if <(Level) = [6]> then\n        hide\n        stop [this script v]\n    end\n    turn right (15) degrees\nend\nhide\n\nwhen I start as a clone\ngo to x: (112) y: (-31)\nrepeat until <(Level) = [6]>\n    if <(Level) = [6]> then\n        hide\n        stop [this script v]\n    end\n    turn left (15) degrees\nend\ndelete this clone\n\ndefine level 6\nshow\nswitch costume to (costume3 v)\npoint in direction (180)\ngo to x: (-1) y: (29)\nwait (1) seconds\nswitch costume to (costume2 v)\npoint in direction (-90)\ngo to x: (-40) y: (103)\nwait (1) seconds\nswitch costume to (costume3 v)\npoint in direction (0)\ngo to x: (4) y: (117)\nwait (1) seconds\n\n@start-up\n\nwhen flag clicked\nshow\ngo to x: (-7) y: (-3)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (start v)\n        hide\n        change [level v] by (1)\n        stop [this script v]\n    end\nend\n\n@loading\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    next costume\nend\n\nwhen I receive [loading v]\nshow\nwait (1) seconds\nhide\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (-65)\nforever\n    show\n    set [ghost v] effect to (100)\nend\n\n
controls - mobile/arrow keys/ WASD\nBuild a nether portal to win\nplz heart and star if u enjoyed!\nalso check out my game space defender https://scratch.mit.edu/projects/557419453/\n\n\n\n\n#games #music #mobile