✧Night A Platformer✧

Instructions: Welcome to another Platformer. There’s 15 levels. All levels are possible. This took about 5 or 4 hours straight, so please leave a ❤️, ⭐️ and a follow :)\n—————————————————————————\nAvoid spikes and also lava, don’t fall in holes. ENJOY!!!!\nShoutout:\n@SuperCanon20 because he’s one of my best friends on scratch, he’s nice also. Go follow him!

@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (-213) y: (-93)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((Xv) * (-1))\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        create clone of (_myself_ v)\n    end\n    if <key (up arrow v) pressed?> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (60)\nrepeat (15)\n    change size by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(x position) > [227]> then\n        go to x: (-213) y: (-93)\n        change [level costumes v] by (1)\n    end\nend\n\nwhen flag clicked\nset [level costumes v] to [0]\n\nwhen flag clicked\nforever\n    if <<touching color (#ff0000)?> or <touching (spikes v)?>> then\n        go to x: (-213) y: (-93)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [start v]\nforever\n    play sound [Murad - Run \(Inspired By Alan Walker\) NCN Release.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (deadline v)?> then\n        go to x: (-213) y: (-93)\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    if <(Level Costumes) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(Level Costumes) = [2]> then\n        switch costume to (costume3 v)\n    end\n    if <(Level Costumes) = [3]> then\n        switch costume to (costume4 v)\n    end\n    if <(Level Costumes) = [4]> then\n        switch costume to (costume5 v)\n    end\n    if <(Level Costumes) = [5]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level Costumes) = [6]> then\n        switch costume to (costume7 v)\n    end\n    if <(Level Costumes) = [7]> then\n        switch costume to (costume8 v)\n    end\n    if <(Level Costumes) = [8]> then\n        switch costume to (costume9 v)\n    end\n    if <(Level Costumes) = [9]> then\n        switch costume to (costume10 v)\n    end\n    if <(Level Costumes) = [10]> then\n        switch costume to (costume11 v)\n    end\n    if <(Level Costumes) = [11]> then\n        switch costume to (costume12 v)\n    end\n    if <(Level Costumes) = [12]> then\n        switch costume to (costume13 v)\n    end\n    if <(Level Costumes) = [13]> then\n        switch costume to (costume14 v)\n    end\n    if <(Level Costumes) = [14]> then\n        switch costume to (costume15 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\n@Glow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to (player v)\n    go to [back v] layer\nend\n\nwhen I receive [start v]\nshow\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level Costumes) = [1]> then\n        show\n        switch costume to (costume2 v)\n        go to x: (-40) y: (-118)\n    end\n    if <(Level Costumes) = [3]> then\n        show\n        switch costume to (costume3 v)\n        go to x: (-40) y: (-107)\n    end\n    if <(Level Costumes) = [7]> then\n        show\n        switch costume to (costume4 v)\n        go to x: (-62) y: (-8)\n    end\n    if <(Level Costumes) = [9]> then\n        show\n        switch costume to (costume5 v)\n        go to x: (-161) y: (-110)\n    end\n    if <(Level Costumes) = [11]> then\n        show\n        switch costume to (costume6 v)\n        create clone of (_myself_ v)\n    end\n    if <(Level Costumes) = [13]> then\n        show\n        switch costume to (costume7 v)\n        go to x: (106) y: (18)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Costumes) = [2]> then\n        hide\n    end\n    if <(Level Costumes) = [4]> then\n        hide\n    end\n    if <(Level Costumes) = [8]> then\n        hide\n    end\n    if <(Level Costumes) = [10]> then\n        hide\n    end\n    if <(Level Costumes) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nhide\nwait until <(Level Costumes) = [11]>\nshow\ngo to x: (38) y: (-34)\nwait until <(Level Costumes) = [12]>\nhide\n\n@Thumbnail \n\nwhen flag clicked\ngo to x: (30) y: (6)\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Moon\n\nwhen flag clicked\ngo to x: (184) y: (131)\n\nwhen I receive [start v]\nforever\n    show\n    go to [back v] layer\nend\n\nwhen flag clicked\nhide\n\n@Moon particle \n\nwhen I start as a clone\nshow\nturn right (pick random (0) to (360)) degrees\nset [ghost v] effect to (pick random (30) to (75))\nrepeat (8)\n    move (15) steps\nend\ndelete this clone\n\nwhen I receive [start v]\nhide\nforever\n    go to (moon v)\n    create clone of (_myself_ v)\nend\n\n@clouds\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (40) to (75))\ngo to x: (-242) y: (pick random (150) to (50))\nforever\n    wait (0.01) seconds\n    go to [back v] layer\n    repeat until <(x position) > [171]>\n        move (pick random (2) to (7)) steps\n    end\n    delete this clone\nend\n\nwhen I receive [snow v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [start v]\n\nwhen I receive [start v]\nhide\nforever\n    wait (pick random (1) to (3)) seconds\n    create clone of (_myself_ v)\nend\n\n@Intro\n\nwhen flag clicked\npoint in direction (90)\nrepeat (12)\n    turn left (30) degrees\nend\n\nwhen flag clicked\ngo to x: (223) y: (0)\nrepeat (12)\n    glide (.3) secs to x: (0) y: (0)\nend\n\nwhen flag clicked\nset [times dead v] to [0]\nset [levels passed without death v] to [0]\nshow\nreset timer\nset [my variable v] to [0]\nset size to (100) %\nwait (.45) seconds\nbroadcast (1 v)\nrepeat (10)\n    change [my variable v] by (1)\n    change size by (my variable)\nend\nrepeat until <(timer) > [4]>\n    repeat (20)\n        change [my variable v] by (-1)\n        change size by (my variable)\n    end\n    repeat (20)\n        change [my variable v] by (1)\n        change size by (my variable)\n    end\nend\nbroadcast (2 v)\n\nwhen I start as a clone\nrepeat (50)\n    change size by (5)\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\nwhen flag clicked\nset size to (100) %\nwait (.45) seconds\nrepeat until <(timer) > [4]>\n    create clone of (_myself_ v)\n    wait (0.6) seconds\nend\n\nwhen flag clicked\nset volume to (100) %\nreset timer\nset [my variable v] to [0]\nset size to (100) %\nwait (.45) seconds\nstart sound [Fingerdash v]\nwait until <(timer) > [9.5]>\nrepeat (16)\n    change volume by (-5)\nend\nrepeat (20)\n    change volume by (-1)\nend\nstop all sounds\nbroadcast (Start v)\n\nwhen flag clicked\nerase all\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\nset [everything unlocked code: v] to [1111111111011111011111111111]\n\nwhen I receive [start v]\nset [#playing v] to [0]\n\nwhen I receive [level setup v]\nset [#playing v] to [1]\n\nwhen I receive [start2 v]\nset [#playing v] to [0]\n\n@Intro2\n\nwhen flag clicked\nset size to (300) %\ngo to x: (0) y: (0)\npoint in direction (75)\nhide\nrepeat (10)\n    create clone of (_myself_ v)\n    turn left (15) degrees\nend\n\nwhen I receive [2 v]\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\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\n@Intro3\n\nwhen flag clicked\npoint in direction (90)\nrepeat (12)\n    turn left (30) degrees\nend\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-300)\nglide (.3) secs to x: (0) y: (0)\n\nwhen flag clicked\nset size to (100) %\nwait (.45) seconds\nrepeat (10)\n    change size by (6)\nend\nrepeat until <(timer) > [4]>\n    repeat (10)\n        change size by (-6)\n    end\n    repeat (10)\n        change size by (6)\n    end\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\n@Love\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level Costumes) = [14]> then\n        show\n        go to x: (-197) y: (37)\n    end\nend\n\n@Favorite \n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level Costumes) = [14]> then\n        show\n        go to x: (-30) y: (37)\n    end\nend\n\n@Follow\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level Costumes) = [14]> then\n        show\n        go to x: (130) y: (37)\n    end\nend\n\n@Deadline\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\ngo to x: (36) y: (5)\nset [ghost v] effect to (99)\n\n