The cave || a platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [17]> then\n    switch backdrop to (backdrop2 v)\nend\n\n@Intro\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\npoint in direction (90)\nswitch costume to ( v)\ncreate clone of (_myself_ v)\nwait (2) seconds\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nset size to (100) %\nswitch costume to (skip1 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <not <(count) = [1]>> then\n    if <(costume [number v]) = [1]> then\n        set size to (0) %\n        wait (1) seconds\n        show\n        repeat (20)\n            turn right (18) degrees\n            change size by (5)\n        end\n        wait (3) seconds\n        set [turn v] to [2.5]\n        repeat (10)\n            turn right (Turn) degrees\n            set [turn v] to ((Turn) * (0.9))\n        end\n        repeat (3)\n            set [turn v] to [-5]\n            repeat (10)\n                turn right (Turn) degrees\n                set [turn v] to ((Turn) * (0.9))\n            end\n            set [turn v] to [5]\n            repeat (10)\n                turn right (Turn) degrees\n                set [turn v] to ((Turn) * (0.9))\n            end\n        end\n        set [turn v] to [-2.5]\n        repeat (10)\n            turn right (Turn) degrees\n            set [turn v] to ((Turn) * (0.9))\n        end\n        wait (1) seconds\n        repeat (5)\n            turn right (-30) degrees\n            change x by (20)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            turn right (36) degrees\n            wait (0.01) seconds\n        end\n        repeat (5)\n            turn right (30) degrees\n            change x by (-20)\n            wait (0.01) seconds\n        end\n        wait (1.9) seconds\n        repeat (20)\n            turn right (18) degrees\n            change size by (-5)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nerase all\nif <not <(count) = [1]>> then\n    if <(costume [number v]) = [2]> then\n        set size to (0) %\n        wait (1) seconds\n        repeat (20)\n            turn right (18) degrees\n            change size by (5)\n        end\n        wait (0.75) seconds\n        set [turn 2 v] to [-2.5]\n        repeat (10)\n            turn right (Turn 2) degrees\n            set [turn 2 v] to ((Turn 2) * (0.9))\n        end\n        repeat (3)\n            set [turn 2 v] to [5]\n            repeat (10)\n                turn right (Turn 2) degrees\n                set [turn 2 v] to ((Turn 2) * (0.9))\n            end\n            set [turn 2 v] to [-5]\n            repeat (10)\n                turn right (Turn 2) degrees\n                set [turn 2 v] to ((Turn 2) * (0.9))\n            end\n        end\n        set [turn 2 v] to [2.5]\n        repeat (10)\n            turn right (Turn 2) degrees\n            set [turn 2 v] to ((Turn 2) * (0.9))\n        end\n        wait (1) seconds\n        repeat (5)\n            turn right (-30) degrees\n            change x by (-20)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            turn right (36) degrees\n            wait (0.01) seconds\n        end\n        repeat (5)\n            turn right (30) degrees\n            change x by (20)\n            wait (0.01) seconds\n        end\n        broadcast (Rings v)\n        wait (2) seconds\n        repeat (20)\n            turn right (18) degrees\n            change size by (-5)\n        end\n        broadcast (Intro v)\n        delete this clone\n    end\nend\n\nwhen I receive [rings v]\n\nswitch costume to (skip1 v)\nset size to (5) %\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\nwait (0.0001) seconds\nif <[3] = (costume [number v])> then\n    if <(size) > [199]> then\n    delete this clone\nend\n\nwhen I start as a clone\nif <[3] = (costume [number v])> then\n\nwhen I receive [intro v]\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [game over v]\ngo to x: (-120) y: (0)\nswitch costume to ( v)\ncreate clone of (_myself_ v)\ngo to x: (120) y: (0)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <(count) = [1]> then\n    if <(costume [number v]) = [1]> then\n        set size to (0) %\n        show\n        repeat (20)\n            turn right (18) degrees\n            change size by (5)\n        end\n        wait (3) seconds\n        set [turn v] to [2.5]\n        repeat (10)\n            turn right (Turn) degrees\n            set [turn v] to ((Turn) * (0.9))\n        end\n        forever\n            repeat (3)\n                set [turn v] to [-5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n                set [turn v] to [5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nif <(count) = [1]> then\n    if <(costume [number v]) = [3]> then\n        set size to (0) %\n        show\n        repeat (20)\n            turn right (18) degrees\n            change size by (5)\n        end\n        wait (3) seconds\n        set [turn v] to [2.5]\n        repeat (10)\n            turn right (Turn) degrees\n            set [turn v] to ((Turn) * (0.9))\n        end\n        forever\n            repeat (3)\n                set [turn v] to [-5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n                set [turn v] to [5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <[4] = (costume [number v])> then\n    show\nend\n\nwhen this sprite clicked\nif <[4] = (costume [number v])> then\n    broadcast (Intro v)\n    delete this clone\nend\n\n@Intro #2\n\nwhen flag clicked\nset size to (300) %\ngo to x: (0) y: (0)\npoint in direction (75)\nhide\nrepeat (20)\n    create clone of (_myself_ v)\n    turn left (15) degrees\nend\n\nwhen I receive [start v]\nstop [other scripts in sprite v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\ndelete this clone\n\nwhen I receive [rings v]\nwait (0.1) seconds\nset [momentum v] to (pick random (10) to (15))\nset [yv v] to (pick random (2) to (3))\nchange size by (pick random (-150) to (0))\nchange [brightness v] effect by (pick random (-20) to (20))\nturn right (pick random (-10) to (10)) degrees\nshow\nrepeat until <touching (_edge_ v)?>\n    go to [back v] layer\n    move (Momentum) steps\n    change y by (Yv)\n    change [yv v] by (-0.4)\n    set [momentum v] to ((Momentum) * (0.95))\nend\nhide\ndelete this clone\n\n@Spikes\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [next level v]\nchange [level v] by (1)\nif <(Level) = [3]> then\n    go to [back v] layer\n    switch costume to (costume2 v)\n    show\n    set [brightness v] effect to (-75)\n    set [ghost v] effect to (50)\nelse\n    if <(Level) > [3]> then\n        go to [back v] layer\n        set [brightness v] effect to (-75)\n        set [ghost v] effect to (50)\n        next costume\n    else\n        hide\n    end\nend\n\nwhen I receive [go back v]\nswitch costume to ((costume [number v]) - (1))\n\n@Guy\n\nwhen I start as a clone\nshow\ngo [backward v] (1) layers\nif <[1] = (costume [number v])> then\n    switch costume to (costume2 v)\n    repeat (10)\n        change [color v] effect by (5)\n        change [ghost v] effect by (5)\n        change size by (-2)\n    end\n    delete this clone\nelse\n    switch costume to (costume4 v)\n    repeat (10)\n        change [color v] effect by (5)\n        change [ghost v] effect by (5)\n        change size by (-2)\n    end\n    delete this clone\nend\n\nwhen I receive [next level v]\nif <(Level) = [10]> then\n    go to x: (150) y: (150)\nelse\n    go to x: (-220) y: (0)\nend\n\nwhen flag clicked\nforever\n    if <<(y position) < [-170]> or <touching (spikes v)?>> then\n        broadcast (Redo v)\n    end\nend\n\nwhen I receive [redo v]\nset [speed y v] to [0]\nif <(Level) = [11]> then\n    go to x: (150) y: (150)\nelse\n    go to x: (-220) y: (0)\nend\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    if <<<key (s v) pressed?> or <key (down arrow v) pressed?>> or <<mouse down?> and <(mouse y) < (y position)>>> then\n        repeat until <not <<key (s v) pressed?> or <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>>>\n            switch costume to (costume3 v)\n        end\n    end\n    switch costume to (costume1 v)\nend\n\nset [sword showing v] to [0]\npoint in direction (-135)\nwait until <not <key (space v) pressed?>>\nhide\n\nwhen I receive [go back v]\nbroadcast (Redo v)\n\nwhen I receive [intro v]\nshow\nswitch costume to (costume1 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [intro v]\ngo to [back v] layer\nswitch costume to (costume1 v)\nset [my variable v] to [0]\nset [speed y v] to [0]\ngo to x: (-220) y: (0)\nset size to (50) %\nMove\n\ndefine Move\nforever\n    change [speed y v] by (-0.5)\n    set rotation style [left-right v]\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        point in direction (-90)\n        change [my variable v] by (-2)\n    end\n    if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        point in direction (90)\n        change [my variable v] by (2)\n    end\n    set [my variable v] to ((my variable) * (0.7))\n    change x by (my variable)\n    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                        change y by (1)\n                        if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                            change y by (1)\n                            if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                                change y by (-6)\n                                change x by ((my variable) * (-1))\n                                if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                    set [speed y v] to [10]\n                                    if <(my variable) > [0]> then\n                                        set [my variable v] to [-10]\n                                    else\n                                        set [my variable v] to [10]\n                                    end\n                                else\n                                    set [my variable v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Speed y)\n    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n        change y by ((-1) * (Speed y))\n        set [speed y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching (ground v)?> or <touching (moving platform v)?>> and <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [speed y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen I receive [intro v]\nrepeat (50)\n    change volume by (-2)\nend\nstop all sounds\nrepeat (50)\n    change volume by (2)\nend\nplay sound [Vexento - Occupy v] until done\nforever\n    play sound [Vexento - Pixel Party v] until done\n    play sound [Vexento - Occupy v] until done\nend\n\nwhen flag clicked\nset volume to (100) %\nplay sound [Vicetone - United We Dance v] until done\n\nwhen flag clicked\nhide\n\n@Ground\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume2 v)\nforever\n    if <<[237] = ([x position v] of [guy v])> or <[237] < ([x position v] of [guy v])>> then\n        broadcast (Next level v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [next level v]\nnext costume\nif <not <(Level) = [17]>> then\n    set [brightness v] effect to (-100)\nelse\n    set [brightness v] effect to (0)\nend\n\ngo to x: (([x position v] of [guy v]) + (5)) y: ([y position v] of [guy v])\n\nwhen I receive [intro v]\nset [brightness v] effect to (-100)\nforever\n    go [backward v] (100) layers\n    show\nend\n\nwhen I receive [next level v]\nif <(Level) = [17]> then\n    set [count v] to [1]\n    broadcast (Game over v)\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [go back v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nset [count v] to [0]\nhide\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [14]> then\n    go to [back v] layer\nelse\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen I receive [intro v]\ngo to x: (220) y: (180)\nchange [ghost v] effect by (15)\nforever\n    hide\n    change y by (-360)\n    change x by (-10)\n    change y by (360)\n    change x by (-10)\n    Color\nend\n\nwhen I start as a clone\n\ndefine Color\nset pen size to (100)\nset pen color to (#000000)\npen down\n\nset size to (128) %\nshow\n\nwhen I receive [next level v]\nerase all\ngo to x: (220) y: (180)\nchange [ghost v] effect by (15)\nif <not <(Level) = [17]>> then\n    forever\n        hide\n        change y by (-360)\n        change x by (-10)\n        change y by (360)\n        change x by (-10)\n        Color\n    end\nend\n\nwhen I receive [next level v]\nwait (0) seconds\nif <(Level) = [17]> then\n    stop [other scripts in sprite v]\n    forever\n        erase all\n    end\nend\n\n@Sprite3\n\nset [ghost v] effect to (60)\nset size to (500) %\nforever\n    repeat (10)\n        change size by (-2)\n        wait (0.01) seconds\n    end\n    repeat (10)\n        change size by (2)\n        wait (0.01) seconds\n    end\nend\n\nwhen I receive [intro v]\nset size to (100) %\n\nwhen I receive [intro v]\nforever\n    go to (guy v)\n    set [ghost v] effect to (25)\n    go to [back v] layer\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (10)\n        change size by (-2)\n        wait (0.01) seconds\n    end\n    repeat (10)\n        change size by (2)\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nshow\n\nwhen flag clicked\nforever\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [17]> then\n    go to x: (-100) y: (-50)\n    stop [other scripts in sprite v]\n    hide\nend\n\nwhen I receive [next level v]\nset size to (100) %\nforever\n    if <[4] < (Deaths per level)> then\n        set size to (150) %\n        stop [this script v]\n    end\nend\n\n@Sprite5\n\nset [ghost v] effect to (60)\nset size to (200) %\nforever\n    repeat (10)\n        change size by (2)\n        wait (0.01) seconds\n    end\n    repeat (10)\n        change size by (-2)\n        wait (0.01) seconds\n    end\nend\n\nwhen I receive [intro v]\nset size to (100) %\n\nwhen I receive [intro v]\nforever\n    go to (guy v)\n    go to [back v] layer\n    set [ghost v] effect to (60)\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (10)\n        change size by (2)\n        wait (0.01) seconds\n    end\n    repeat (10)\n        change size by (-2)\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nshow\n\nwhen flag clicked\nforever\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [17]> then\n    go to x: (-100) y: (-50)\n    stop [other scripts in sprite v]\n    hide\nend\n\nwhen I receive [next level v]\nset size to (100) %\nforever\n    if <[4] < (Deaths per level)> then\n        set size to (150) %\n        stop [this script v]\n    end\nend\n\n@Moving platform\n\nwhen flag clicked\nset [delete clones v] to [0]\nhide\n\nwhen I receive [next level v]\nset [delete clones v] to [1]\nwait (0.1) seconds\nset [delete clones v] to [0]\nif <(Level) = [5]> then\n    go to x: (36) y: (28)\n    create clone of (_myself_ v)\nend\nif <(Level) = [6]> then\n    go to x: (30) y: (0)\n    create clone of (_myself_ v)\nend\nif <(Level) = [7]> then\n    go to x: (30) y: (50)\n    create clone of (_myself_ v)\nend\nif <(Level) = [16]> then\n    go to x: (-12) y: (50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [brightness v] effect to (-100)\ngo [backward v] (0) layers\nshow\nforever\n    repeat until <<[100] < (y position)> or <<touching (ground v)?> or <<touching (spikes v)?> or <touching (_edge_ v)?>>>>\n        change y by (5)\n    end\n    wait (0.5) seconds\n    change y by (-4)\n    repeat until <<(y position) < [-100]> or <<touching (ground v)?> or <<touching (spikes v)?> or <<touching (enemy v)?> or <touching (_edge_ v)?>>>>>\n        change y by (-5)\n    end\n    wait (0.5) seconds\n    change y by (4)\nend\n\nwhen I receive [redo v]\nwait (0.5) seconds\nif <(Level) = [5]> then\n    go to x: (36) y: (28)\n    create clone of (_myself_ v)\nend\nif <(Level) = [6]> then\n    go to x: (30) y: (0)\n    create clone of (_myself_ v)\nend\nif <(Level) = [7]> then\n    go to x: (30) y: (50)\n    create clone of (_myself_ v)\nend\nif <(Level) = [16]> then\n    go to x: (-12) y: (50)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [redo v]\nset [delete clones v] to [1]\nwait (0.01) seconds\nset [delete clones v] to [0]\n\nwhen I start as a clone\nforever\n    if <(Delete clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    hide\nend\n\ndefine Typewriter Talk (speak this) For (seconds)\nset [talk v] to []\nset [count v] to [1]\nrepeat (length of (speak this))\n    set [talk v] to (join (talk) (letter (count) of (speak this)))\n    say (talk)\n    wait (seconds) seconds\n    change [count v] by (1)\nend\nwait (1) seconds\nsay []\n\nwhen I receive [intro v]\nif <[1] = (Level)> then\n    go to x: (0) y: (-90)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [brightness v] effect to (-55)\nshow\nforever\n    if <[1] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [You were sleeping, but when you woke up you were in a cave you are trying to get out. Use arrow keys or WASD] For [0]\n        end\n    end\n    if <[2] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [You can wall jump!] For [0]\n        end\n    end\n    if <[3] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [Watch out for spikes!] For [0]\n        end\n    end\n    if <[4] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [Duck!] For [0.001]\n        end\n    end\n    if <[5] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [What's next?] For [0.001]\n        end\n    end\n    if <[6] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [A moving platform?] For [0.001]\n        end\n    end\n    if <[9] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [A leap of faith] For [0.001]\n        end\n    end\n    if <[10] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [You can do this!] For [0.001]\n        end\n    end\n    if <[14] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [Is this a trap or smth?] For [0.001]\n        end\n    end\n    if <[16] = (Level)> then\n        if <touching (guy v)?> then\n            Typewriter Talk [I see light!] For [0.001]\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <[2] = (Level)> then\n    go to x: (-50) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[3] = (Level)> then\n    go to x: (-107) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[4] = (Level)> then\n    go to x: (100) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[5] = (Level)> then\n    go to x: (-180) y: (-83)\n    create clone of (_myself_ v)\nend\nif <[6] = (Level)> then\n    go to x: (-90) y: (15)\n    create clone of (_myself_ v)\nend\nif <[9] = (Level)> then\n    go to x: (-180) y: (-67)\n    create clone of (_myself_ v)\nend\nif <[10] = (Level)> then\n    go to x: (-70) y: (-24)\n    create clone of (_myself_ v)\nend\nif <[14] = (Level)> then\n    go to x: (-200) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[16] = (Level)> then\n    go to x: (-200) y: (-103)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [redo v]\nwait (0.1) seconds\nif <[2] = (Level)> then\n    go to x: (-50) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[3] = (Level)> then\n    go to x: (-107) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[4] = (Level)> then\n    go to x: (100) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[5] = (Level)> then\n    go to x: (-180) y: (-83)\n    create clone of (_myself_ v)\nend\nif <[6] = (Level)> then\n    go to x: (-90) y: (15)\n    create clone of (_myself_ v)\nend\nif <[9] = (Level)> then\n    go to x: (-180) y: (-67)\n    create clone of (_myself_ v)\nend\nif <[10] = (Level)> then\n    go to x: (-70) y: (-24)\n    create clone of (_myself_ v)\nend\nif <[14] = (Level)> then\n    go to x: (-200) y: (-90)\n    create clone of (_myself_ v)\nend\nif <[16] = (Level)> then\n    go to x: (-200) y: (-103)\n    create clone of (_myself_ v)\nend\n\n@Sprite4\n\nwhen I start as a clone\ngo to x: (220) y: (0)\nshow\n\nwhen I start as a clone\nforever\n    if <(Delete clones) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\nwait (0.1) seconds\nif <(Level) = [16]> then\n    go to x: (220) y: (0)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [redo v]\nwait (0.1) seconds\nif <(Level) = [16]> then\n    go to x: (220) y: (0)\n    create clone of (_myself_ v)\nend\n\n@Skip\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\nbroadcast (Next level v)\nwait (0.1) seconds\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [intro v]\ngo to [back v] layer\nhide\n\nwhen I receive [next level v]\nset [deaths per level v] to [0]\nhide\nwait (0.1) seconds\nif <(Level) = [17]> then\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [redo v]\nchange [deaths per level v] by (1)\n\nwhen I receive [next level v]\nset [turn v] to [2.5]\npoint in direction (90)\nrepeat (10)\n    turn right (Turn) degrees\n    set [turn v] to ((Turn) * (0.9))\nend\nwait (0.1) seconds\ngo to x: (-180) y: (-145)\n\nwhen flag clicked\nset [deaths per level v] to [0]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [next level v]\nwait (1) seconds\nforever\n    if <(Deaths per level) > [7]> then\n        repeat until <(Delete clones) = [1]>\n            show\n            set [turn v] to ((Turn) * (0.9))\n            repeat (3)\n                set [turn v] to [-5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n                set [turn v] to [5]\n                repeat (10)\n                    turn right (Turn) degrees\n                    set [turn v] to ((Turn) * (0.9))\n                end\n            end\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nwait (0.2) seconds\nrepeat (50)\n    change [brightness v] effect by (2)\n    change [ghost v] effect by (0.2)\nend\nhide\n\n
Check this project out too pls: https://scratch.mit.edu/projects/388944330/\n----------------------------------------------------------------\nPls ❤️,⭐️, and FOLLOW\nOr else i will steal all your money you have and give it to someone that loved and faved >:)\nI will be very happy!!!\nWhich leads to better projects!!!\n-----------------------------------------------------------------\nAll levels are possible\nUse arrow keys or WASD to move \nMobile friendly! \nAvoid spikes\nYou can wall jump\nDown arrow or S to shrink\n16 levels! (I rushed)\nLike it? Love, favorite, and follow!\nHave fun!