Power Jump! - A platformer

Instructions: ✨Welcome to Power Jump!✨\n~~~~~~~~~~~~~~~~~~~~~~~~~\nControls:\n-Press the flag twice!!!\n-Arrow Keys to move\n-Space to Power Jump\n-R to restart\n-Press music note to mute, press again to unmute \n-Due to popular demand there is now skips! Press S :)\n~~~~~~~~~~~~~~~~~~~~~~~~~\nGoals: \n-Reach the edge to move on to the next level :D\n-Find the Secret Achievement \n~~~~~~~~~~~~~~~~~~~~~~~~~\nColors:\n-White: Just your normal ground \n-Red: Restarts you at the start of the level\n-Pink: Reverses your "Power Jump" so you go down instead of up\n-Blue: (Secret)\n-Yellow: Launches you to the right\n~~~~~~~~~~~~~~~~~~~~~~~~~\nNotes: \n- You keep your momentum after you die\n- As with other platformers, all levels are possible. Some levels like 7, 10, 14, and 19 are very challenging but still are possible!\n~~~~~~~~~~~~~~~~~~~~~~~~~\nOnce you complete the game remix it and add your own levels, If I see an exceptionally cool or unique level I will add it to the game! :D  \n~~~~~~~~~~~~~~~~~~~~~~~~~\nDon't Forget to ❤ and ⭐ if you enjoyed \n#Games  #Platformer  #Power  #Jump\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nroar

@Stage\n\n@Character\n\nwhen I receive [fail v]\ngo to x: (-228) y: (0)\nchange [d v] by (1)\n\nwhen [space v] key pressed\nif <touching color (#ffc1c1)?> then\n    if <(Pwr Jump) = [Ready!]> then\n        set [yv v] to [0]\n        change [yv v] by (-20)\n        broadcast (Pwr Jump Reg v)\n    end\nelse\n    if <(Pwr Jump) = [Ready!]> then\n        set [yv v] to [0]\n        change [yv v] by (20)\n        broadcast (Pwr Jump Reg v)\n    end\nend\n\nwhen I receive [pwr jump reg v]\nset [pwr jump v] to [3]\nwait (1) seconds\nset [pwr jump v] to [2]\nwait (1) seconds\nset [pwr jump v] to [1]\nwait (1) seconds\nset [pwr jump v] to [Ready!]\n\nwhen [r v] key pressed\ngo to x: (-228) y: (0)\n\nwhen I receive [game start v]\nset [pwr jump v] to [Ready!]\n\nwhen I receive [game start v]\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Fail v)\n    end\n    if <touching color (#ffe600)?> then\n        change [xv v] by (20)\n    end\nend\n\nwhen I receive [game start v]\nset [d v] to [0]\nshow\ngo to [front v] layer\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-228) y: (0)\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 color (#ffffff)?> then\n        change y by (1)\n        if <touching color (#ffffff)?> then\n            change y by (1)\n            if <touching color (#ffffff)?> then\n                change y by (1)\n                if <touching color (#ffffff)?> then\n                    change y by (1)\n                    if <touching color (#ffffff)?> then\n                        change y by (1)\n                        if <touching color (#ffffff)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\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 color (#ffffff)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    if <touching (_edge_ v)?> then\n        go to x: (-228) y: (0)\n        broadcast (LvL complete v)\n    end\nend\n\nwhen I receive [game start v]\nshow list [hall of fame v]\nforever\n    if <touching (achievement link 1  v)?> then\n        broadcast (Secret v)\n    end\nend\n\nwhen I receive [game start v]\nbroadcast (Start Settings v)\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Fail v)\n\nwhen flag clicked\nshow list [hall of fame v]\nforever\n    if <[Level] = [21]> then\n        if <(item (username) of [hall of fame v]) = [True]> then\n            stop [this script v]\n        else\n            add (username) to [hall of fame v]\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nset [d v] to [0]\n\n@Levels\n\nwhen I receive [lvl complete v]\nnext costume\n\nwhen I receive [start settings v]\npoint in direction (90)\n\nwhen [1 v] key pressed\ngo to x: (2) y: (-5)\n\nwhen flag clicked\nhide variable [timer v]\nforever\n    if <(Level) = [14]> then\n        broadcast (Timer v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [timer v]\nshow variable [timer v]\nset [timer v] to [9]\nrepeat (9)\n    change [timer v] by (-1)\n    wait (1) seconds\nend\n\nwhen I receive [timer v]\nforever\n    if <(Timer) = [0]> then\n        broadcast (Fail v)\n        broadcast (Timer v)\n    end\nend\n\nwhen I receive [time fix v]\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [timer v]\nforever\n    if <(Level) = [15]> then\n        stop [other scripts in sprite v]\n        broadcast (Time Fix v)\n        hide variable [timer v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [game start v]\ngo to x: (2) y: (-5)\ngo to [back v] layer\nset [level v] to [1]\n\nwhen I receive [game start v]\nswitch costume to (costume1 v)\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen flag clicked\n\nwhen I receive [game start v]\nforever\n    if <key (s v) pressed?> then\n        if <not <(Level) = [20]>> then\n            broadcast (LvL complete v)\n        end\n    end\n    wait (1) seconds\nend\n\n@Plat 1\n\nwhen I receive [plat 1 v]\n\nwhen I receive [game start v]\ngo to [front v] layer\ngo to x: (124) y: (87)\nforever\n    if <(Level) = [10]> then\n        show\n        broadcast (Plat 1 v)\n        forever\n            if <(Level) = [10]> then\n                show\n                glide (.8) secs to x: (128) y: (-135)\n                if <<(Level) > [10]> or <(Level) < [10]>> then\n                    hide\n                else\n                    show\n                end\n                glide (.8) secs to x: (128) y: (100)\n            else\n                hide\n            end\n        end\n    else\n        hide\n    end\nend\n\n@Achievement Bar 1\n\nwhen I receive [secret v]\nshow\nif <(Secret Value 1) = [0]> then\n    change [secret value 1 v] by (1)\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\n    wait (3.5) seconds\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\nend\nhide\n\nwhen I receive [game start v]\nhide\ngo to [front v] layer\nset [ghost v] effect to (100)\nset [secret value 1 v] to [0]\n\n@Achievement Link 1 \n\nwhen I receive [secret v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game start v]\nforever\n    if <(Level) = [8]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [game start v]\nhide\n\n@download\n\nwhen this sprite clicked\nnext costume\nbroadcast (Music On/Off v)\n\nwhen I receive [music on/off v]\nif <(costume [number v]) = [1]> then\n    set [music v] to [0]\n    set volume to (100) %\nend\n\nwhen I receive [music on/off v]\nif <(costume [number v]) = [2]> then\n    set [music v] to [1]\n    set volume to (0) %\nend\n\nwhen I receive [game start v]\nset [music v] to [0]\nswitch costume to (music on v)\nshow\n\nwhen flag clicked\nbroadcast (Music Loop v)\n\nwhen I receive [music loop v]\nplay sound [TheFatRat - Windfall v] until done\nplay sound [TheFatRat - Time Lapse \(1\) v] until done\nplay sound [The Fat Rat - Unity v] until done\nplay sound [TheFatRat - Monody \(No Vocals\) \(1\) v] until done\nbroadcast (Music Loop v)\n\nwhen flag clicked\nforever\n    if <touching (character v)?> then\n        change [ghost v] effect by (100)\n    else\n        clear graphic effects\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\nhide variable [pwr jump v]\nhide variable [level v]\nshow\n\nwhen I receive [game prep v]\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [game prep v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nshow\nforever\n    glide (1) secs to x: (4) y: (60)\n    glide (1) secs to x: (4) y: (70)\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (Game Prep v)\nbroadcast (Game Start v)\nshow list [hall of fame v]\n\nwhen I receive [game prep v]\nhide\nshow variable [pwr jump v]\nshow variable [level v]\n\n@Sprite4\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen I receive [game prep v]\nhide\n\nwhen this sprite clicked\nhide list [hall of fame v]\n\nbroadcast (Hall of Fame WIP v)\n\n@Hall of Fame WIP Bar\n\nwhen I receive [hall of fame wip v]\nbroadcast (HoF WIP check v)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [hof wip check v]\nwait (6) seconds\nhide\n\n