Space Adventure Platformer

Instructions: You are an astronaut and you were discovering the planets in the solar system. Suddenly, your rocket was shoot by some bad aliens. Now, you have to get out of the aliens's UFO. And come back home.\nPart 2: https://scratch.mit.edu/projects/691696348/\nMy other games:\nhttps://scratch.mit.edu/projects/562446486/\nhttps://scratch.mit.edu/projects/562838477/

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    go to [back v] layer\n    play sound [VexentoLonelyDance-Lonely-5418298 v] until done\nend\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\n@Player\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [steep v] to [0]\nrepeat until <<(Steep) = [8]> or <not <touching (platform v)?>>>\n    change y by (1)\n    change [steep v] by (1)\nend\nif <(Steep) = [8]> then\n    change x by ((-1) * (speed))\n    change y by (-8)\nend\n\ndefine Touch Ground <up?>\nrepeat until <not <touching (platform v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\nshow\nset rotation style [left-right v]\ngo to x: (-224) y: (136)\nforever\n    if <touching (bounce pad v)?> then\n        set [speed y v] to [20]\n    end\n    change [speed y v] by (-1)\n    change y by (Speed Y)\n    change [falling? v] by (1)\n    Touch Ground <(Speed Y) > [0]>\n    set [speed x v] to ((Speed X) * (0.85))\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> or <key (d v) pressed?>> then\n        change [speed x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> then\n        change [speed x v] by (-1)\n    end\n    if <(Speed X) < [-0]> then\n        Walk [-90] (Speed X)\n    else\n        if <(Speed X) > [0]> then\n            Walk [90] (Speed X)\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> and <(Falling?) < [6]>> then\n        set [speed y v] to [10]\n    end\n    if <(x position) > [230]> then\n        broadcast (Next Level v)\n        go to x: (-200) y: (50)\n        set [falling? v] to [6]\n    end\n    if <<touching color (#6f0000)?> or <<touching color (#ff0000)?> or <touching color (#00ff43)?>>> then\n        go to x: (-200) y: (50)\n        set [falling? v] to [6]\n    end\nend\n\n@Platform\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume9 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@alien\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume9 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Lazer\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume2 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Lazer2\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\nforever\n    hide\n    wait (1.5) seconds\n    show\n    wait (1.5) seconds\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume2 v)\n\ngo [backward v] (4) layers\n\n@lava\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume9 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@spike\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume9 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@thumnail\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nchange [ghost v] effect by (100)\n\n@boss\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    set [my variable v] to (costume [number v])\nend\n\nwhen I receive [next level v]\nnext costume\ngo to [back v] layer\nif <(costume [number v]) = [10]> then\n    say [You think that you can get out of here easily. Catch that astronaut !!!] for (5) seconds\n    broadcast (end v)\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Love and Fav!2\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    set [ghost v] effect to (100)\n    show\n    switch costume to (nooooo v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    create clone of (_myself_ v)\n    go to [front v] layer\n    wait (2) seconds\n    switch costume to (love v)\n    wait (2) seconds\n    switch costume to (fav v)\n    wait (2) seconds\n    switch costume to (follow v)\n    wait (3) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    wait (180) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (cursor v)\ngo to x: (0) y: (140)\nglide (2) secs to x: (60) y: (140)\nstart sound [Click v]\nwait (1) seconds\nglide (1) secs to x: (105) y: (140)\nstart sound [Click v]\nwait (1) seconds\nglide (1) secs to x: (190) y: (140)\nstart sound [Click v]\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Sprite5\n\nwhen I receive [end v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\n