Relaxation 2 --- a platformer

Instructions: Relaxation 2\n\nmobile friendly\n\nW A S D / ↑↓→ to move\n\nThis is a lot easier than relaxation 1.\n\nPlease like love and follow this took 6 hours of work\n\n\n10 likes and loves for the next one\n\npart one here https://scratch.mit.edu/projects/575453820/\npart three here:https://scratch.mit.edu/projects/587222917/\n\n\ncomment your speedrun mine is \n\n40.391 seconds no skip and 1.485 seconds with skip\n\nrelaxation 3 ill come out soon i just need to complete the art...\n\n\n←------- go play the game !!!!!\n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (stars v)\n\nwhen I receive [background v]\nswitch backdrop to (stars2 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop1 v)\n\nchange [level v] by (-1)\n\n@player\n\nwhen I receive [start v]\nreset timer\nset size to (100) %\ngo to x: (-214) y: (-120)\nshow\ngo to x: (-217) y: (-60)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nset [deaths v] to [0]\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (3 v)\n        change [x v] by (-1)\n        create clone of (_myself_ v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (2 v)\n        change [x v] by (1)\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching (floor v)?> then\n        change y by (1)\n    end\n    if <touching (floor v)?> then\n        change y by (1)\n    end\n    if <touching (floor v)?> then\n        change y by (1)\n    end\n    if <touching (floor v)?> then\n        change y by (1)\n    end\n    if <touching (floor v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            create clone of (_myself_ v)\n            set [y v] to [16]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (floor v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (floor v)?>> or <<<mouse down?> and <(mouse y) > (y position)>> and <touching (floor v)?>>> then\n        set [y v] to [14]\n    end\n    change y by (1)\n    if <<touching (obsticals v)?> or <<<touching (saw v)?> or <touching (sprite3 v)?>> or <<touching (saw2 v)?> or <touching (sprite4 v)?>>>> then\n        broadcast (death v)\n        repeat (20)\n            change y by (2)\n            change [ghost v] effect by (5)\n        end\n        wait (0) seconds\n        set [ghost v] effect to (0)\n        go to x: (-217) y: (-80)\n    end\n    if <touching (launch pad v)?> then\n        set [y v] to [20]\n    end\n    if <not <<key (down arrow v) pressed?> or <<<key (a v) pressed?> or <<key (s v) pressed?> or <<key (d v) pressed?> or <key (w v) pressed?>>>> or <<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>>>> then\n        switch costume to (1 v)\n    end\n    if <<(x position) > [210]> and <not <(level) = [11]>>> then\n        go to x: (-217) y: (-80)\n        change [level v] by (1)\n        wait (0.2) seconds\n    end\n    if <<<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> or <<key (w v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (4 v)\n    end\n    if <<<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (w v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (5 v)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (7 v)\nset size to (100) %\nrepeat (5)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\n    change size by (-2)\nend\ndelete this clone\n\nwhen flag clicked\nhide variable [time: v]\nset [level v] to [1]\n\nwhen I receive [death v]\nplay sound [Crunch v] until done\n\nwhen I receive [start point v]\ngo to x: (-217) y: (-60)\n\nwhen I receive [start v]\nforever\n    play sound [Xylo3 v] until done\nend\n\nwhen I receive [start v]\nforever\n    show variable [time: v]\n    set [time: v] to (timer)\n    if <[11] = (level)> then\n        stop [this script v]\n    end\nend\n\n@floor\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    switch costume to (level)\n    if <(level) = [9]> then\n        go to [back v] layer\n    end\nend\n\n@launch pad\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\nset size to (75) %\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        wait (0.1) seconds\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\nforever\n    if <(level) = [3]> then\n        go to x: (-50) y: (-103)\n        show\n    end\n    if <(level) = [4]> then\n        hide\n    end\n    if <(level) = [5]> then\n        go to x: (-140) y: (-105)\n        show\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [7]> then\n        go to x: (-90) y: (-103)\n        show\n    end\n    if <(level) = [8]> then\n        point in direction (90)\n        hide\n    end\n    if <(level) = [10]> then\n        go to x: (141) y: (-103)\n        show\n    end\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nforever\n    if <(level) = [3]> then\n        go to x: (-50) y: (-103)\n        show\n    end\n    if <(level) = [4]> then\n        hide\n    end\nend\n\npoint in direction (90)\n\nwait (0.5) seconds\n\nplay sound [Big Boing v] until done\n\n@obsticals\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nshow\nforever\n    switch costume to (level)\n    if <(level) = [8]> then\n        set [ghost v] effect to (100)\n    end\n    if <(level) = [9]> then\n        set [ghost v] effect to (0)\n    end\nend\n\n@intro\n\nwhen flag clicked\ngo to [front v] layer\npoint in direction (90)\nbroadcast (hide v)\nset size to (100) %\nhide\nset size to (100) %\nswitch costume to (costume1 v)\ngo to x: (-180) y: (0)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\ngo to x: (-60) y: (0)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (60) y: (0)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (180) y: (0)\ncreate clone of (_myself_ v)\nwait (1) seconds\ngo to x: (180) y: (0)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (60) y: (0)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (-60) y: (0)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (-180) y: (0)\ncreate clone of (_myself_ v)\nwait (1) seconds\nswitch costume to (costume2 v)\ngo to x: (0) y: (150)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\ngo to x: (0) y: (50)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (0) y: (-50)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (0) y: (-150)\ncreate clone of (_myself_ v)\nwait (1) seconds\ngo to x: (0) y: (-150)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (0) y: (-50)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (0) y: (50)\ncreate clone of (_myself_ v)\nwait (.1) seconds\ngo to x: (0) y: (150)\ncreate clone of (_myself_ v)\nwait (1) seconds\nshow\nswitch costume to (costume3 v)\ngo to x: (0) y: (0)\nset [brightness v] effect to (0)\nbroadcast (background v)\nrepeat (4)\n    wait (0.2) seconds\nend\nset size to (100) %\nset [brightness v] effect to (0)\nchange [brightness v] effect by (50)\nset [brightness v] effect to (0)\nrepeat (18)\n    change [brightness v] effect by (-10)\n    turn right (10) degrees\n    change [brightness v] effect by (10)\n    wait (0) seconds\n    change size by (2)\nend\nrepeat (18)\n    change [brightness v] effect by (-10)\n    turn right (0) degrees\n    change [brightness v] effect by (10)\n    change size by (-2)\nend\nwait (0.2) seconds\nbroadcast (start v)\nstop [other scripts in sprite v]\nhide\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (20)\n    wait (0) seconds\n    change [ghost v] effect by (5)\n    change size by (-1)\nend\ndelete this clone\n\nshow\n\nwhen flag clicked\nplay sound [Techno v] until done\n\nwait (0) seconds\n\n@clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [brightness v] effect to (pick random (0) to (100))\ngo to [back v] layer\nswitch costume to (pick random (1) to (2))\nset size to (pick random (50) to (90)) %\nshow\nset [ghost v] effect to (30)\nglide (0) secs to x: (400) y: (y position)\nglide (11) secs to x: (-400) y: (y position)\nrepeat (100)\n    change x by (-10)\nend\n\nwhen I receive [start v]\n\nwhen I start as a clone\nwait (8) seconds\ndelete this clone\n\nwhen flag clicked\nset [brightness v] effect to (0)\ngo to [back v] layer\nset size to (30) %\nforever\n    go to x: (200) y: (pick random (160) to (70))\n    wait (1) seconds\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\nend\n\n@saw\n\nwhen flag clicked\nwait (0) seconds\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (100) y: (-105)\n        forever\n            turn right (20) degrees\n            if <[5] = (level)> then\n                hide\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (100) y: (-105)\n        forever\n            glide (2) secs to x: (-100) y: (-105)\n            glide (2) secs to x: (100) y: (-105)\n        end\n    end\n    if <[5] = (level)> then\n        stop [this script v]\n    end\n    if <[5] = (level)> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide v]\n\nwhen flag clicked\nforever\n    if <[5] = (level)> then\n        forever\n            turn right (15) degrees\n        end\n    end\nend\n\n@text\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (level)\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [11]> then\n        go to [front v] layer\n    end\nend\n\n@start\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\nend\n\n@sun\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [back v] layer\nset [ghost v] effect to (0)\ngo to x: (-236) y: (178)\nshow\nset size to (150) %\nforever\n    repeat (10)\n        change size by (3)\n        wait (0) seconds\n    end\n    wait (2) seconds\n    repeat (10)\n        wait (0) seconds\n        change size by (-3)\n    end\n    wait (2) seconds\nend\n\n@skip\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset size to (100) %\nshow\ngo to x: (200) y: (158)\ngo to [front v] layer\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(level) = [11]>>> then\n        broadcast (start point v)\n        change [level v] by (1)\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        go to [front v] layer\n    end\nend\n\nwhen I receive [start v]\nset size to (100) %\nshow\ngo to x: (200) y: (158)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        wait until <not <touching (mouse-pointer v)?>>\n        switch costume to (costume1 v)\n    end\nend\n\n@saw2\n\nwhen flag clicked\nwait (0) seconds\ngo to x: (-20) y: (105)\nhide\n\nwhen I receive [start v]\nforever\n    forever\n        turn right (20) degrees\n        if <[8] = (level)> then\n            hide\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [1]> then\n        forever\n            glide (2) secs to x: (-20) y: (105)\n            glide (2) secs to x: (-20) y: (-105)\n        end\n    end\n    if <[8] = (level)> then\n        stop [this script v]\n    end\n    if <[8] = (level)> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [7]> then\n        show\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        show\n        go to x: (36) y: (28)\n        forever\n            show\n            repeat (5)\n                change y by (5)\n                wait (0) seconds\n            end\n            wait (1) seconds\n            repeat (5)\n                change y by (-5)\n                wait (0) seconds\n            end\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [7]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n