Space Platformer 

Instructions: THANKS!!! I came in 3rd!!! =D\n\nWelcome to Space, a platformer where you traverse between different planets, each with their own difficulties. =)\n\n-=-=-=-=-=-=-=-=-=-= Instructions =-=-=-=-=-=-=-=-=-=-\nUmmm, its a platformer: Arrow Keys = Move\nGoal: Get to the spaceship at the end of each level. =)\n\nI'll make a sequel some time. =)\n\nI don't expect to win, I had this planned and so I just made it as the contest entry. =D If I had more time I would have added more stuff but, it is what it is. =)\n\n#Platformer #Scrolling #Space @ MJM3 #3k #Followers #Contest #Entry #IlikeCanada #Kurzgesagt #DysonSphere #Dyson #Sphere #Music #Games #Game #Art #Animation #Juice #PewDiePie #Sushi #Slamer #Slammer #Jim #Bob #Hi #Hai #Art 

@Stage\n\nwhen I receive [menu v]\nswitch backdrop to (in space v)\nforever\n    play sound [Dyson Sphere Kurzgesagt v] until done\nend\n\nwhen I receive [begin spel v]\nswitch backdrop to (intro backdrop v)\n\nwhen flag clicked\nswitch backdrop to (mvh12 v)\n\n@Player\n\nwhen I receive [start v]\nset [level v] to [1]\nrepeat until <(Level) = [4]>\n    broadcast (Reset v) and wait\n    broadcast (Set up v) and wait\n    Game on\n    switch costume to (player v)\n    repeat until <(Exit) > []>\n        show\n        Tick\n        broadcast (Tick v)\n    end\n    if <(Exit) = [win]> then\n        Game - win\n    else\n        if <(Exit) = [death]> then\n            Game - death\n        end\n    end\nend\n\ndefine Game on\nset rotation style [left-right v]\nshow\nclear graphic effects\nset size to (0) %\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nset [sx v] to [0]\nset [sy v] to [0]\nset [exit v] to []\nset [in air v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\n\ndefine Tick\nif <not <(round (size)) = [100]>> then\n    change size by (((100) - (size)) / (2))\nend\nset [sx v] to ((sx) * (0.8))\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <<(x) > ((mouse x) + (SCROLL X))> and <((x) - ((mouse x) + (SCROLL X))) > [5]>>>> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <<((mouse x) + (SCROLL X)) > (x)> and <[-5] > ((x) - ((mouse x) + (SCROLL X)))>>>> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nif <([abs v] of (sx) ) > [0.5]> then\n    Change player x by (sx)\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) + (SCROLL Y)) > (y)>>> then\n    if <(in air) < [1]> then\n        set [sy v] to [22]\n    end\nend\nchange [sy v] by (-2)\nChange player Y by (sy)\nset [scroll x v] to (x)\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (3)))\nposition\nif <(y) < [-720]> then\n    set [exit v] to [death]\nend\n\ndefine Change player Y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nposition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    set [sy v] to [0]\n    position\nend\n\ndefine position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change player x by (sx)\nchange [x v] by (sx)\nposition\nif <touching (platforms v)?> then\n    repeat (8)\n        change [y v] by (1)\n        position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-8)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        position\n    end\nend\n\ndefine Game - death\nstart sound [273587__n-audioman__mag-explosion v]\nshow\nset [exit v] to []\nset [sy v] to [12]\nwait (0.1) seconds\nhide\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\nwait (1) seconds\n\ndefine Game - win\nrepeat until <(round (size)) = [30]>\n    change size by (((30) - (size)) / (2))\n    wait (.01) seconds\nend\nhide\nif <(Level) = [3]> then\n    broadcast (End v)\nelse\nend\nchange [level v] by (1)\nbroadcast (Fly Away v) and wait\n\nwhen I start as a clone\nshow\nswitch costume to (particle v)\nset size to (pick random (50) to (100)) %\nset [brightness v] effect to (pick random (-25) to (25))\nset [sx v] to (pick random (-15) to (15))\nset [sy v] to (pick random (0) to (20))\nforever\n    change x by (sx)\n    change y by (sy)\n    set [sx v] to ((sx) * (0.95))\n    change [sy v] by (-1)\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nif <touching (ship v)?> then\n    set [exit v] to [win]\nend\n\nwhen I receive [start v]\n\n    if <touching (bleh v)?> then\n        set [exit v] to [death]\n    end\nend\n\nwhen I receive [begin spel v]\nhide\n\n@Platforms\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I start as a clone\nshow\n\nwhen I receive [set up v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(Level) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [0] y: [0]\n    Clone at x: [360] y: [75]\n    Clone at x: [710] y: [151]\nelse\n    if <(Level) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [220] y: [0]\n        Clone at x: [800] y: [0]\n        Clone at x: [1300] y: [0]\n        Clone at x: [1400] y: [350]\n    else\n        if <(Level) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [0] y: [0]\n            Clone at x: [0] y: [400]\n            Clone at x: [700] y: [500]\n        end\n    end\nend\nset [x v] to [1000000000000000]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [end v]\nhide\n\nif <(Level) = [4]> then\n    hide\n    stop [other scripts in sprite v]\n    stop [this script v]\nelse\nend\n\nwhen I receive [begin spel v]\nhide\n\n@Bleh\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I start as a clone\nshow\n\nwhen I receive [set up v]\ngo to [back v] layer\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(Level) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [0] y: [0]\n    Clone at x: [360] y: [75]\n    Clone at x: [700] y: [151]\nelse\n    if <(Level) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [220] y: [0]\n        Clone at x: [800] y: [0]\n        Clone at x: [1300] y: [0]\n        Clone at x: [1400] y: [350]\n    else\n        if <(Level) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [0] y: [0]\n            Clone at x: [0] y: [400]\n            Clone at x: [700] y: [500]\n        end\n    end\nend\nset [x v] to [1000000000000000]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [end v]\nhide\n\nwhen I receive [begin spel v]\nhide\n\n@Ship\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine go to x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [set up v]\nif <(Level) = [1]> then\n    go to x: [850] y: [177]\nelse\n    if <(Level) = [2]> then\n        go to x: [1650] y: [372]\n    else\n        if <(Level) = [3]> then\n            go to x: [1070] y: [654]\n        else\n        end\n    end\nend\n\nwhen I receive [fly away v]\nset [y velocity v] to [0]\nset [x velocity v] to [0]\nrepeat (24)\n    change x by (X Velocity)\n    change y by (Y Velocity)\n    change [x velocity v] by (1)\n    change [y velocity v] by (.5)\n    turn left (.7) degrees\nend\nhide\npoint in direction (90)\nif <(Level) = [4]> then\n    broadcast (End v) and wait\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [begin spel v]\nhide\n\n@Play Button\n\nwhen I receive [menu v]\nwait (.6) seconds\nclear graphic effects\ngo to [front v] layer\nshow\ngo to x: (0) y: (-40)\n\n    set y to ((-20) - ((10) * ([sin v] of (((timer) - (4)) * (80)) )))\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        point in direction (([sin v] of ((1000) * (timer)) ) + (90))\n        if <mouse down?> then\n            broadcast (Start v)\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n            broadcast (Level 1 v)\n        end\n    else\n        point in direction (90)\n        change size by (((80) - (size)) / (3))\n    end\nend\n\nwhen I receive [begin spel v]\nhide\n\n@Menu Text\n\nwhen I receive [menu v]\nclear graphic effects\ngo to x: (0) y: (50)\nwait (.6) seconds\nshow\n\n    set y to ((100) + ((20) * ([sin v] of (((timer) - (4)) * (150)) )))\n    point in direction ((90) + ((15) * ([cos v] of (((timer) - (4)) * (150)) )))\nend\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nstop [other scripts in sprite v]\n\nwhen I receive [begin spel v]\nhide\n\n@End\n\nwhen I receive [end v]\nforever\n    create clone of (_myself_ v)\n    wait (.5) seconds\nend\n\nwhen I start as a clone\nif <(pick random (0) to (1)) = [1]> then\n    set [turn v] to [3]\nelse\n    set [turn v] to [-3]\nend\ngo to [front v] layer\ngo to x: (pick random (-235) to (235)) y: (-195)\nswitch costume to (pick random (1) to (3))\nshow\nset [y velocity v] to [25]\nrepeat (51)\n    change y by (Y Velocity)\n    change [y velocity v] by (-1)\n    turn right (Turn) degrees\nend\ndelete this clone\n\nwhen I receive [begin spel v]\nhide\n\n@Thanks For Playing Text\n\nwhen I receive [end v]\ngo to [front v] layer\nclear graphic effects\ngo to x: (0) y: (50)\nshow\n\n    set y to ((100) + ((20) * ([sin v] of (((timer) - (4)) * (150)) )))\n    point in direction ((90) + ((15) * ([cos v] of (((timer) - (4)) * (150)) )))\nend\n\n@Sushi\n\nwhen I start as a clone\nclear graphic effects\nif <(id) = [1]> then\n    clear graphic effects\n    set [ghost v] effect to (60)\n    if <not <(y position) = [0]>> then\n        go to x: (0) y: (-180)\n    end\n    set [xvel v] to (pick random (-30) to (30))\n    set [yvel v] to (pick random (7) to (20))\n    show\n    set size to (20) %\n    repeat until <(x position) < [-300]>\n        change [yvel v] by (-1)\n        set size to (500) %\n        set [xvel v] to ((xvel) * (0.9))\n        change x by (xvel)\n        change y by (yvel)\n        turn right ((xvel) * (5)) degrees\n        set size to (20) %\n    end\n    delete this clone\nelse\n    if <(id) = [2]> then\n        go to [front v] layer\n        switch costume to (green v)\n        set size to (1) %\n        repeat until <(round (size)) = [220]>\n            switch costume to (small v)\n            change size by (((220) - (size)) / (10))\n            switch costume to (green v)\n        end\n    else\n        if <(id) = [3]> then\n            wait (0.2) seconds\n            go to [front v] layer\n            switch costume to (purple v)\n            set size to (1) %\n            repeat until <(round (size)) = [220]>\n                switch costume to (small v)\n                change size by (((220) - (size)) / (6))\n                switch costume to (purple v)\n            end\n        else\n            go to [front v] layer\n            switch costume to (small v)\n            set size to (36000) %\n            set x to (600)\n            set size to (112) %\n            switch costume to (transition v)\n            repeat until <(round (x position)) < [0]>\n                go to [front v] layer\n                switch costume to (small v)\n                set size to (100000) %\n                change x by (((-2) - (x position)) / (6))\n                set size to (112) %\n                switch costume to (transition v)\n            end\n            set [vel v] to [0]\n            repeat until <(x position) < [-300]>\n                go to [front v] layer\n                change [vel v] by (-2)\n                switch costume to (small v)\n                set size to (100000) %\n                change x by (vel)\n                set size to (112) %\n                switch costume to (transition v)\n            end\n            hide\n        end\n    end\nend\n\ndefine Clones\nset [id v] to [1]\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <<(id) = [4]> and <((round ((x position) / (10))) * (10)) = [0]>> then\n        broadcast (Hide v)\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen I receive [hide v]\nif <not <(id) = [4]>> then\n    hide\nend\n\nwhen I receive [begin spel v]\nswitch backdrop to (intro backdrop v)\nswitch costume to (sushi v)\npoint in direction (90)\nstart sound [Ali-a_Intro_Song v]\nhide\nset size to (10000) %\ngo to x: (0) y: (-360)\nset size to (100) %\nwait (.3) seconds\nshow\nClones\nrepeat until <(round (y position)) = [0]>\n    change y by (((0) - (y position)) / (3))\nend\nset y to (0)\nrepeat (70)\n    set [brightness v] effect to ((loudness) * (0.5))\n    set size to ((70) + ((loudness) * (0.8))) %\n    point in direction ((90) + ((15) * ([sin v] of ((timer) * (400)) )))\n    if <(pick random (1) to (7)) = [4]> then\n        set [id v] to [1]\n        create clone of (_myself_ v)\n    end\nend\npoint in direction (90)\nset size to (100) %\nset [id v] to [2]\nrepeat (2)\n    create clone of (_myself_ v)\n    change [id v] by (1)\nend\nwait (1) seconds\nclear graphic effects\nset [ghost v] effect to (100)\ngo to [front v] layer\nswitch costume to (text v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\ncreate clone of (_myself_ v)\nset [id v] to [1516171]\nwait (1.3) seconds\nbroadcast (Menu v)\nstop all sounds\n\n@Thumbnail\n\nwhen I receive [begin spel v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\n\n@tr\n\nwhen flag clicked\nshow\nswitch costume to (cat-a v)\nsay [Hello!!!] for (2) seconds\nswitch costume to (tr v)\nwait (3) seconds\nbroadcast (hello v)\nhide\n\n@c6fbc7c466e4ccdd080fc876d02fc67d\n\nwhen I receive [hello v]\nshow\nrepeat (100)\n    next costume\n    wait (0.0001) seconds\nend\nbroadcast (begin spel v)\nhide\n\n