Ice || A Platformer

Instructions: Welcome to another Platformer. ENJOY!!!\n\nAbout the game:\nThere’s 12 levels (all possible)\nAvoid spikes (duh XD)\nUse arrow keys to move, jump\n\nPlease ❤️ and ⭐️ for more platformers....\n\nFirst love and fav: @Batgirl689

@Stage\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen I receive [start2 v]\nforever\n    play sound [Invincible v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [start2 v]\nshow\ngo to x: (-200) y: (-123)\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 (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground 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 (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground 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 <touching (spikes2 v)?> then\n        go to x: (-200) y: (-123)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [227]> then\n        go to x: (-200) y: (-123)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n        repeat (5)\n            create clone of (_myself_ v)\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        repeat (5)\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nset [ghost v] effect to (60)\nrepeat (15)\n    change size by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\n@Intro4\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\nwhen flag clicked\ngo to [front v] layer\n\n@Intro3\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@Intro1\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\nbroadcast (Start2 v)\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@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [start2 v]\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [start2 v]\nforever\n    if <(Level) = [0]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume3 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume4 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume5 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume7 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume8 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (costume10 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (costume11 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (costume12 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (costume13 v)\n    end\nend\n\n@Spikes2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (Death v)\n    end\nend\n\nwhen I receive [start2 v]\ngo to x: (0) y: (0)\n\nwhen I receive [start v]\nshow\nforever\n    if <(Level) = [0]> then\n        switch costume to (spike v)\n    end\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (costume8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (costume10 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (costume11 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (costume12 v)\n    end\nend\n\n