EUROPA - a platformer

Instructions: Arrow keys to move. Avoid spikes, plants and aliens.\n\nIt is the year 2094, and you are on the first manned mission to Europa, the icy moon of Jupiter. The purpose of this mission? To find proof of alien life on its wet, cold surface.\n\nUnfortunately, you were tossed out of your pod during landing. Can you return to your ship and complete your mission?\nLook at this! --> https://scratch.mit.edu/projects/394385030/\nALL LEVELS ARE POSSIBLE (tested by me)\n\n#europa #space #platformer #astronaut #moon #jupiter #NASA #ice #cold #fog #alien

@Stage\n\n@Ninjanibb\n\nwhen flag clicked\nshow\nswitch costume to (img_1543 v)\nset [ghost v] effect to (100)\nswitch backdrop to (backdrop1 v)\ngo to x: (0) y: (0)\nset size to (58) %\nwait (0.52) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\n    wait (0.05) seconds\nend\nwait (1.2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    wait (0.05) seconds\nend\nswitch costume to (costume1 v)\nset size to (100) %\nwait (1.2) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\n    wait (0.05) seconds\nend\nwait (1.2) seconds\nbroadcast (message1 v)\nwait (1.7) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    wait (0.05) seconds\nend\nhide\n\nwhen flag clicked\nwait until <key (space v) pressed?>\nhide\nbroadcast (start v)\nswitch backdrop to (backdrop2 v)\nstop [other scripts in sprite v]\n\n@a platformer\n\nwhen I receive [message1 v]\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\n    wait (0.05) seconds\nend\nwait (0.6) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    wait (0.05) seconds\nend\nhide\nwait (1) seconds\nswitch backdrop to (backdrop2 v)\nbroadcast (start v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <key (space v) pressed?>\nhide\nbroadcast (start v)\nstop [other scripts in sprite v]\n\n@Land\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-49)\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nwait (2) seconds\nplay sound [324252__rhodesmas__rings-of-saturn-music-loop2 v] until done\nforever\n    play sound [324252__rhodesmas__rings-of-saturn-music-loop v] until done\nend\n\nwhen I receive [spaceship v]\nrepeat (10)\n    change volume by (-10)\nend\nstop [other scripts in sprite v]\nset volume to (100) %\n\nwhen I receive [musik v]\nwait (2) seconds\nplay sound [324252__rhodesmas__rings-of-saturn-music-loop2 v] until done\nforever\n    play sound [324252__rhodesmas__rings-of-saturn-music-loop v] until done\nend\n\n@Sprite\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (306) y: (pick random (-132) to (71))\nset size to (pick random (400) to (500)) %\nset [ghost v] effect to (pick random (36) to (60))\nrepeat (100)\n    move (-2) steps\nend\nrepeat until <touching (_edge_ v)?>\n    move (-2) steps\nend\nrepeat (50)\n    move (-2) steps\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to (something v)\nshow\nclear graphic effects\nset size to (130) %\ngo to [back v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [spaceship v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Something\n\ndefine block\nrepeat until <not <<touching (land v)?> or <<touching (nibb v)?> or <touching (platfor v)?>>>>\n    platform\n    change y by (1)\n    set [yo, the nibb is gray v] to [0]\nend\n\ndefine is touching\nset [strange variable v] to [1]\nif <(énib) = [0]> then\n    change y by (Yo, the nibb is GRAy)\nend\nif <<touching (land v)?> or <<touching (nibb v)?> or <touching (platfor v)?>>> then\n    set [up again v] to [1]\n    block\nend\nset [strange variable v] to [0]\n\ndefine faster\nset [yo, the nibb is gray v] to [15]\nset [up again v] to [0]\n\nwhen flag clicked\nshow\nforever\n    if <(énib) = [0]> then\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            if <not <(x position) = [-235]>> then\n                move (5) steps\n                if <<touching (nibb v)?> or <touching (platfor v)?>> then\n                    move (-5) steps\n                end\n            end\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            if <not <(x position) = [235]>> then\n                move (5) steps\n                if <<touching (nibb v)?> or <touching (platfor v)?>> then\n                    move (-5) steps\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nset [yo, the nibb is gray v] to [0]\nforever\n    if <(énib) = [0]> then\n        if <key (up arrow v) pressed?> then\n            faster\n            repeat until <(up again) = [1]>\n                if <(énib) = [0]> then\n                    change [yo, the nibb is gray v] by (-1)\n                    is touching\n                end\n            end\n            start sound [47221__delphidebrain__delphis-ice-dices-loop-124 v]\n        end\n        if <(up again) = [1]> then\n            change [yo, the nibb is gray v] by (-1)\n            is touching\n        end\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <<touching (spikes v)?> or <<touching (plant thing v)?> or <touching (alien v)?>>> then\n        set [énib v] to [1]\n        start sound [348251__newagesoup__power-down-02 v]\n        repeat (10)\n            change [pixelate v] effect by (2)\n        end\n        go to x: (-206) y: (-137)\n        set [énib v] to [0]\n        repeat (10)\n            change [pixelate v] effect by (-2)\n        end\n        clear graphic effects\n    end\nend\n\nwhen I receive [start v]\ngo to x: (-206) y: (-137)\nshow\n\nwhen I receive [start v]\nforever\n    wait until <touching (_edge_ v)?>\n    change [level v] by (1)\n    switch backdrop to (backdrop2 v)\n    broadcast (next costume v)\nend\n\nset [up again v] to [1]\nblock\nset [strange variable v] to [0]\n\nset [yo, the nibb is gray v] to [0]\nset [up again v] to [0]\n\ndefine block name\nblock name\n\ndefine platform\nif <touching (platfor v)?> then\n    if <(Thing) = [1]> then\n        change x by (2)\n    end\n    if <(Thing) = [2]> then\n        change x by (-2)\n    end\nend\n\nwhen I receive [change x by \( -10 \) v]\nchange x by (8)\n\nwhen I receive [change x by \( 10 \) v]\nchange x by (-8)\n\nset x to (233)\n\nwhen I receive [start v]\nwait until <(level) = [20]>\nbroadcast (spaceship v)\nwait until <touching (spaceship v)?>\nset [ghost v] effect to (100)\nset [énib v] to [1]\n\nwhen I receive [next costume v]\ngo to x: (-206) y: (-137)\n\n@Nibb\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [next costume v]\nnext costume\nwait (0.01) seconds\ngo to [front v] layer\n\n@Spikes\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (-1)\n\nwhen flag clicked\nhide\n\nwhen I receive [next costume v]\ngo to [front v] layer\nnext costume\n\n@Plant Thing\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [chomp speed v] to [0.15]\ngo to x: (0) y: (0)\nwait until <(level) = [6]>\ncreate clone of (_myself_ v)\nwait until <(level) = [7]>\n2 plants\nwait until <(level) = [8]>\n3 plants\nwait until <(level) = [11]>\n2 plants\nwait until <(level) = [13]>\n2 plants\nwait until <(level) = [14]>\n4 plants\nwait until <(level) = [15]>\n4 plants\nset [chomper stuff ii v] to [1]\nwait (1) seconds\n4 plants\nset [chomper stuff ii v] to [0]\nwait until <(level) = [16]>\n3 plants\nset [chomper stuff ii v] to [1]\n3 plants\nset [chomper stuff ii v] to [0]\nwait until <(level) = [17]>\n3 plants\nset [chomper stuff ii v] to [1]\n3 plants\nset [chomper stuff ii v] to [0]\nwait until <(level) = [18]>\n3 plants\nwait until <(level) = [19]>\n3 plants\n\nwhen I start as a clone\ngo to [front v] layer\nif <(level) = [14]> then\n    if <(chomper stuff) = [0]> then\n        point in direction (-90)\n        go to x: (-102) y: (-95)\n    end\n    if <(chomper stuff) = [1]> then\n        point in direction (-90)\n        go to x: (-13) y: (-95)\n    end\n    if <(chomper stuff) = [2]> then\n        point in direction (-90)\n        go to x: (82) y: (-95)\n    end\n    if <(chomper stuff) = [3]> then\n        point in direction (-90)\n        go to x: (174) y: (-95)\n    end\nend\nif <(level) = [13]> then\n    if <(chomper stuff) = [1]> then\n        point in direction (90)\n        go to x: (-74) y: (36)\n    else\n        point in direction (90)\n        go to x: (81) y: (36)\n    end\nend\nif <(level) = [6]> then\n    point in direction (90)\n    go to x: (0) y: (0)\nend\nif <(level) = [7]> then\n    if <not <(chomper stuff) = [1]>> then\n        point in direction (90)\n        go to x: (0) y: (0)\n    else\n        point in direction (-90)\n        go to x: (0) y: (-7)\n        set [chomper stuff v] to [0]\n    end\nend\nif <(level) = [8]> then\n    if <(chomper stuff) = [1]> then\n        point in direction (0)\n        go to x: (-148) y: (-129)\n    end\n    if <(chomper stuff) = [0]> then\n        point in direction (-90)\n        go to x: (37) y: (-110)\n    end\n    if <(chomper stuff) = [2]> then\n        point in direction (90)\n        go to x: (142) y: (60)\n    end\nend\nif <(level) = [11]> then\n    if <(chomper stuff) = [1]> then\n        point in direction (180)\n        go to x: (187) y: (-125)\n    end\n    if <(chomper stuff) = [0]> then\n        point in direction (-90)\n        go to x: (-48) y: (-133)\n    end\nend\nif <(level) = [19]> then\n    if <(chomper stuff) = [0]> then\n        point in direction (-90)\n        go to x: (-133) y: (-85)\n    end\n    if <(chomper stuff) = [1]> then\n        point in direction (-90)\n        go to x: (32) y: (-30)\n    end\n    if <(chomper stuff) = [2]> then\n        point in direction (-90)\n        go to x: (169) y: (-5)\n    end\nend\nshow\nswitch costume to (costume1 v)\nforever\n    repeat (4)\n        next costume\n        wait (chomp speed) seconds\n    end\n    switch costume to (costume4 v)\n    wait (chomp speed) seconds\n    switch costume to (costume3 v)\n    wait (chomp speed) seconds\n    switch costume to (costume2 v)\n    wait (chomp speed) seconds\n    switch costume to (costume1 v)\n    wait (chomp speed) seconds\nend\n\nwhen I receive [next costume v]\ndelete this clone\n\ndefine 2 plants\nset [chomper stuff v] to [0]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [1]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [0]\n\ndefine 3 plants\nset [chomper stuff v] to [0]\ncreate clone of (_myself_ v)\nwait (0.006) seconds\nset [chomper stuff v] to [1]\ncreate clone of (_myself_ v)\nwait (0.006) seconds\nset [chomper stuff v] to [2]\ncreate clone of (_myself_ v)\nwait (0.006) seconds\nset [chomper stuff v] to [0]\n\ndefine 4 plants\nset [chomper stuff v] to [0]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [1]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [2]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [3]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [chomper stuff v] to [0]\n\nwhen I start as a clone\nif <(level) = [15]> then\n    if <(chomper stuff II) = [1]> then\n        if <(chomper stuff) = [0]> then\n            point in direction (90)\n            go to x: ((-102) - (45)) y: (-12)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (90)\n            go to x: ((-13) - (45)) y: (-12)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (90)\n            go to x: ((82) - (45)) y: (-12)\n        end\n        if <(chomper stuff) = [3]> then\n            point in direction (90)\n            go to x: ((174) - (45)) y: (-12)\n        end\n    else\n        if <(chomper stuff) = [0]> then\n            point in direction (-90)\n            go to x: (-102) y: (-95)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (-90)\n            go to x: (-13) y: (-95)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (-90)\n            go to x: (82) y: (-95)\n        end\n        if <(chomper stuff) = [3]> then\n            point in direction (-90)\n            go to x: (174) y: (-95)\n        end\n    end\nend\n\nset [chomp speed v] to [0.3]\n\nwhen I start as a clone\nif <(level) = [16]> then\n    if <(chomper stuff II) = [1]> then\n        if <(chomper stuff) = [0]> then\n            point in direction (90)\n            go to x: (-102) y: (-12)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (90)\n            go to x: ((-13) + (70)) y: (-12)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (90)\n            go to x: ((82) + (140)) y: (-12)\n        end\n    else\n        if <(chomper stuff) = [0]> then\n            point in direction (-90)\n            go to x: (-102) y: (-73)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (-90)\n            go to x: ((-13) + (70)) y: (-73)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (-90)\n            go to x: ((82) + (140)) y: (-73)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(level) = [17]> then\n    if <(chomper stuff II) = [1]> then\n        if <(chomper stuff) = [0]> then\n            point in direction (90)\n            go to x: ((-102) - (50)) y: (-12)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (90)\n            go to x: (((-13) + (70)) - (50)) y: (-12)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (90)\n            go to x: (((82) + (140)) - (50)) y: (-12)\n        end\n    else\n        if <(chomper stuff) = [0]> then\n            point in direction (-90)\n            go to x: (((-102) + (70)) - (50)) y: (-73)\n        end\n        if <(chomper stuff) = [1]> then\n            point in direction (-90)\n            go to x: (((-13) + (160)) - (50)) y: (-73)\n        end\n        if <(chomper stuff) = [2]> then\n            point in direction (-90)\n            go to x: (((82) + (230)) - (95)) y: (-73)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(level) = [18]> then\n    if <(chomper stuff) = [0]> then\n        point in direction (-90)\n        go to x: (185) y: (-100)\n    end\n    if <(chomper stuff) = [1]> then\n        point in direction (0)\n        go to x: (-213) y: (-130)\n    end\n    if <(chomper stuff) = [2]> then\n        point in direction (-90)\n        go to x: (107) y: (-100)\n    end\nend\n\n@Alien\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nset [detect v] to [0]\nif <(level) = [16]> then\n    if <(alien stuff) = [0]> then\n        go to x: (-36) y: (-118)\n    end\n    if <(alien stuff) = [1]> then\n        go to x: (142) y: (-118)\n    end\nend\nif <(level) = [9]> then\n    go to x: (-14) y: (-88)\nend\nif <<(level) = [10]> or <(level) = [19]>> then\n    if <(alien stuff) = [0]> then\n        go to x: (-168) y: (-83)\n    end\n    if <(alien stuff) = [1]> then\n        go to x: (19) y: (-49)\n    end\n    if <(alien stuff) = [2]> then\n        go to x: (141) y: (17)\n    end\nend\nif <(level) = [11]> then\n    if <(alien stuff) = [0]> then\n        go to x: (-101) y: (-101)\n    end\n    if <(alien stuff) = [1]> then\n        go to x: (4) y: (-101)\n    end\nend\nif <(level) = [13]> then\n    if <(alien stuff) = [0]> then\n        go to x: (-136) y: (-78)\n    end\n    if <(alien stuff) = [1]> then\n        go to x: (10) y: (-78)\n    end\n    if <(alien stuff) = [2]> then\n        go to x: (159) y: (-78)\n    end\nend\nforever\n    detect\n    if <(detect) = [0]> then\n        move (alien speed) steps\n    else\n        if <(direction) = [90]> then\n            point in direction (-90)\n        else\n            point in direction (90)\n        end\n        set [detect v] to [0]\n    end\nend\n\ndefine detect\nmove (20) steps\nif <<not <touching (nibb v)?>> or <<touching (_edge_ v)?> or <touching (spikes v)?>>> then\n    set [detect v] to [1]\nend\nmove (-20) steps\n\nwhen I start as a clone\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen flag clicked\nset [alien speed v] to [2]\nhide\nwait until <(level) = [13]>\n\nset [alien speed v] to [2]\n\nwhen I receive [start v]\nwait until <(level) = [9]>\ncreate clone of (_myself_ v)\nwait until <(level) = [10]>\n3 plants\nwait until <(level) = [11]>\n2 plants\nwait until <(level) = [13]>\n3 plants\nwait until <(level) = [16]>\n2 plants\nwait until <(level) = [19]>\n2 plants\n\nwhen I receive [next costume v]\ndelete this clone\n\nset [level v] to [10]\n\ndefine 3 plants\nset [alien stuff v] to [0]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [alien stuff v] to [1]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [alien stuff v] to [2]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [alien stuff v] to [0]\n\ndefine 2 plants\nset [alien stuff v] to [0]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [alien stuff v] to [1]\ncreate clone of (_myself_ v)\nwait (0.02) seconds\nset [alien stuff v] to [0]\n\n@Info\n\nwhen I receive [start v]\nset [énib v] to [1]\nwait (1) seconds\nswitch costume to (costume5 v)\nshow\nrepeat (3)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nrepeat (3)\n    wait (0.1) seconds\n    next costume\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume15 v)\nrepeat (6)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume19 v)\nrepeat (3)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume23 v)\nrepeat (3)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nhide\nset [énib v] to [0]\nwait until <(level) = [6]>\nset [énib v] to [1]\nshow\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume28 v)\nrepeat (4)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nshow\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume32 v)\nrepeat (3)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nswitch costume to (costume15 v)\nwait (0.1) seconds\nrepeat (6)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (2) seconds\nswitch costume to (costume5 v)\nwait (0.1) seconds\nhide\nset [énib v] to [0]\n\nwhen flag clicked\nhide\n\nswitch costume to (costume5 v)\n\nhide\n\nwhen [space v] key pressed\nset [énib v] to [0]\n\n@pLATFOR\n\nwhen flag clicked\nwait (1) seconds\nhide\nwait until <(level) = [14]>\nshow\ngo to [front v] layer\ngo to x: (-94) y: (-89)\nrepeat until <(level) = [15]>\n    if <not <(level) = [15]>> then\n        set [thing v] to [1]\n        if <not <(level) = [15]>> then\n            repeat (140)\n                if <not <(level) = [15]>> then\n                    move (2) steps\n                end\n            end\n        end\n        set [thing v] to [2]\n        if <not <(level) = [15]>> then\n            repeat (140)\n                if <not <(level) = [15]>> then\n                    move (-2) steps\n                end\n            end\n        end\n    end\nend\nhide\ngo to x: (-94) y: (-89)\nstop [this script v]\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <touching (something v)?> then\n        if <(Thing) = [1]> then\n            broadcast (change x by \( 10 \) v)\n            wait until <(up again) = [0]>\n        end\n        if <(Thing) = [2]> then\n            broadcast (change x by \( -10 \) v)\n            wait until <(up again) = [0]>\n        end\n    end\nend\n\nwhen I receive [next costume v]\nif <(level) = [19]> then\n    hide\nend\nif <(level) = [18]> then\n    show\n    go to [front v] layer\n    go to x: (54) y: (-89)\n    forever\n        set [thing v] to [1]\n        repeat until <touching (_edge_ v)?>\n            move (2) steps\n        end\n        set [thing v] to [2]\n        repeat (87)\n            move (-2) steps\n        end\n    end\nend\ngo to x: (-94) y: (-89)\n\nwhen flag clicked\nwait (1) seconds\nwait until <(level) = [17]>\nwait (1) seconds\nshow\ngo to [front v] layer\ngo to x: (64) y: (-89)\nrepeat until <(level) = [18]>\n    set [thing v] to [1]\n    if <not <(level) = [18]>> then\n        repeat (170)\n            if <not <(level) = [18]>> then\n                move (2) steps\n            end\n        end\n    end\n    set [thing v] to [2]\n    if <not <(level) = [18]>> then\n        repeat (170)\n            if <not <(level) = [18]>> then\n                move (-2) steps\n            end\n        end\n    end\nend\nstop [this script v]\n\nwhen flag clicked\nwait until <(level) = [15]>\nhide\n\n@Spaceship\n\nwhen I receive [spaceship v]\nset size to (100) %\npoint in direction (90)\nswitch costume to (costume1 v)\ngo to x: (163) y: (-98)\nshow\nwait until <touching (something v)?>\nwait (2.2) seconds\nset [speeeed v] to [0.2]\nrepeat (42)\n    change y by (speeeed)\n    change [speeeed v] by (0.35)\nend\nhide\nrepeat (6)\n    change volume by (-10)\nend\nwait (3) seconds\npoint in direction (131)\nset size to (50) %\nshow\ngo to x: (-224) y: (-98)\nset [speeeed v] to [2]\nrepeat (37)\n    change y by (speeeed)\n    change x by (speeeed)\n    change [speeeed v] by (0.35)\nend\nhide\nrepeat (4)\n    wait (1) seconds\n    change volume by (-10)\nend\nbroadcast (musik v)\n\nwhen flag clicked\nset volume to (100) %\nhide\n\nwhen I receive [spaceship v]\nshow\nwait until <touching (something v)?>\nwait (2.2) seconds\nstart sound [515122__mattix__rocket-thrust-02 v]\nforever\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\nend\n\ngo to x: (0) y: (0)\n\n@Cover\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@skip level\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (next costume v)\n\nwhen flag clicked\nforever\n    if <<<(level) = [1]> or <(level) = [6]>> or <(level) = [20]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [start v]\ngo to x: (54) y: (49)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\ngo to x: (-206) y: (-137)\n\n@theEnd\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [musik v]\nwait (2.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nclear graphic effects\n\n