Space- A Platformer
@Stage\n\nwhen I receive [start 2 v]\nforever\n    play sound [Starship v] until done\nend\n\n@phoenix-gif-5\n\nwhen flag clicked\nshow\nrepeat (27)\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I receive [game start!!! v]\nhide\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite1\n\nwhen flag clicked\nstart sound [Guitar Chords2 v]\nshow\n\nwhen I receive [game start!!! v]\nstop all sounds\nhide\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\ngo to [front v] layer\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (1) seconds\nbroadcast (Game Start!!! v)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nset size to (100) %\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@player\n\nwhen I receive [game start!!! v]\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\nwait (1) seconds\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nrepeat (7)\n    switch costume to (bear-walk-a v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    set [x v] to (x position)\n    set [y v] to (y position)\nend\n\ngo to x: (-190) y: (-24)\ngo to x: (-201) y: (14)\n\nwhen I receive [game start!!! v]\ngo to [front v] layer\nset [level v] to [1]\ngo [backward v] (3) layers\nshow\nset size to (70) %\nswitch costume to (costume1 \(23\) v)\ngo to x: (-210) y: (50)\nset drag mode [not draggable v]\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (sprite3 v)?> then\n        change y by (1)\n        if <touching (sprite3 v)?> then\n            change y by (1)\n            if <touching (sprite3 v)?> then\n                change y by (1)\n                if <touching (sprite3 v)?> then\n                    change y by (1)\n                    if <touching (sprite3 v)?> then\n                        change y by (1)\n                        if <touching (sprite3 v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (sprite3 v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [13]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (sprite3 v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <<(x position) > [230]> and > then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-210) y: (0)\n    end\n    if <(y position) < [-170]> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-210) y: (-50)\n    end\n    if <touching (sprite4 v)?> then\n        start sound [ Whoosh v]\n        set [x v] to [0]\n        set [y v] to [0]\n        broadcast (Death v)\n        go to x: (-210) y: (-21)\n    end\n    if <touching (sprite5 v)?> then\n        start sound [ Whoosh v]\n        set [x v] to [0]\n        set [y v] to [0]\n        broadcast (Death v)\n        go to x: (-210) y: (-21)\n    end\nend\n\nwhen I receive [game start!!! v]\nsay [Please get me to my spaceship!] for (2) seconds\nspeak [Please get me to my spaceship!]::tts\n\nwhen I receive [start 2 v]\nforever\n    if <touching (costume16 v)?> then\n        repeat (5)\n            change [y v] by (5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <<touching (sprite5 v)?> or <touching (sprite6 v)?>> then\n        change y by ((Y) * (-0.5))\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <touching (sprite6 v)?> then\n        go to (sprite7 v)\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <key (s v) pressed?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-210) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        switch costume to (costume1 \(23\)4 v)\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume1 \(23\)3 v)\n        else\n            if <key (right arrow v) pressed?> then\n                switch costume to (costume1 \(23\)2 v)\n            else\n                switch costume to (costume1 \(23\) v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite9 v)?> then\n        wait (0.2) seconds\n        hide\n    else\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nhide\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nshow\ngo to x: (0) y: (0)\nset size to (100) %\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\nset [ghost v] effect to (20)\n\nwhen I receive [game start!!! v]\ngo to [back v] layer\nforever\n    if <<(Level) = [5]> or <<(Level) = [6]> or <<(Level) = [7]> or <<(Level) = [8]> or <<(Level) = [9]> or <<(Level) = [10]> or <<(Level) = [11]> or <(Level) = [12]>>>>>>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite6\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [7]> then\n        go to x: (-5) y: (30)\n        point in direction (-90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [8]> then\n        go to x: (-199) y: (-68)\n        point in direction (90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [9]> then\n        go to x: (-104) y: (50)\n        point in direction (-90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [11]> then\n        go to x: (-178) y: (-65)\n        point in direction (90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [12]> then\n        go to x: (-110) y: (-23)\n        point in direction (-90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [13]> then\n        go to x: (32) y: (0)\n        point in direction (-45)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [14]> then\n        go to x: (-150) y: (5)\n        point in direction (-90)\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [15]> then\n        go to x: (-147) y: (107)\n        point in direction (-90)\n        show\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nforever\n    if <<(Level) = [1]> or <<(Level) = [2]> or <<(Level) = [3]> or <<(Level) = [4]> or <<(Level) = [5]> or <<(Level) = [6]> or <<(Level) = [10]> or <(Level) = [16]>>>>>>>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite7\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [7]> then\n        go to x: (181) y: (30)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [8]> then\n        go to x: (117) y: (63)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [9]> then\n        go to x: (164) y: (73)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [11]> then\n        go to x: (72) y: (155)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [12]> then\n        go to x: (136) y: (155)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [13]> then\n        go to x: (136) y: (155)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [14]> then\n        go to x: (50) y: (0)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <(Level) = [15]> then\n        go to x: (171) y: (-2)\n        point in direction (-90)\n        show\n    else\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nforever\n    if <<(Level) = [1]> or <<(Level) = [2]> or <<(Level) = [3]> or <<(Level) = [4]> or <<(Level) = [5]> or <<(Level) = [6]> or <<(Level) = [10]> or <(Level) = [16]>>>>>>>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [game start!!! v]\nforever\n    if <key (s v) pressed?> then\n        wait (0.3) seconds\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nforever\n    wait (0.09) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (pick random (-500) to (500)) y: (200)\npoint in direction (-150)\nrepeat (pick random (19) to (60))\n    move (5) steps\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen I start as a clone\nforever\n    if <touching (sprite3 v)?> then\n        delete this clone\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [game start!!! v]\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nset size to (100) %\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite9\n\nwhen flag clicked\ngo to x: (80) y: (-3)\nhide\nswitch costume to (blue v)\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [16]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [game start!!! v]\ngo to [front v] layer\nforever\n    if <(Level) = [16]> then\n        wait (1) seconds\n        if <touching (player v)?> then\n            switch costume to (blue v)\n            glide (0.1) secs to x: (80) y: (3)\n            switch costume to (blue2 v)\n            glide (1) secs to x: (80) y: (250)\n            hide\n            broadcast (end v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n@Sprite11\n\nwhen flag clicked\ngo [forward v] (10000) layers\ngo to [front v] layer\nset [ghost v] effect to (0)\nforever\n    go to [front v] layer\n    change [ghost v] effect by (1)\nend\n\nwhen I receive [end v]\ngo [forward v] (1000000000) layers\ngo to [front v] layer\nset [ghost v] effect to (0)\nstop [all v]\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\n
4th platformer, guys!!!\nUsual controls- Arrow keys +WASD+ Mobile-friendly\nPlease love, fav and follow\nBeat the levels\nAll levels are possible\n