Simple Platformer

Instructions: ✨1000 VIEWS!✨\n\nPart 2  https://scratch.mit.edu/projects/797826302/ \n\nEnglish‐\nUse arrow keys to move. This game is also mobile friendly. \nPress the❤️+⭐+Follow=Free shoutout on this project\n日本語‐\nアローキーを使ってね。❤️と⭐とフォローを押すとこのプロジェクトでしゃうとアウトがもらえるかも！

@Stage\n\nwhen flag clicked\nforever\n    play sound [tropicana-soundroll-main-version-1725-02-15 v] until done\nend\n\n@Player\n\ndefine ?\nshow\npoint in direction (90)\nset [love/fav v] to [0]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (5)\nif <(love/fav) = [2]> then\n    broadcast (function enabled v)\nend\n\nwhen flag clicked\nswitch costume to (black v)\nbroadcast (Intro end v)\n?\nset rotation style [left-right v]\nhide\n\nwhen I receive [intro end v]\nset size to (73) %\n?\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        change [x v] by (1.05)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [x v] by (-1.05)\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\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 ((x) * (0))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(x) < [0]> then\n                                    set [x v] to [10]\n                                else\n                                    set [x v] to [-10]\n                                end\n                                set [y v] to [15]\n                            else\n                                set [y v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <touching (level v)?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (-1)\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <[220] < (x position)> then\n        ?\n        broadcast (next v)\n        hide\n        wait (1.5) seconds\n        show\n    end\n    if <<(y position) < [-180]> or <touching (obstacle v)?>> then\n        ?\n    end\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [blue c v]\nswitch costume to (blue v)\n\nwhen I receive [light blue c v]\nswitch costume to (light blue v)\n\nwhen I receive [orange c v]\nswitch costume to (orange v)\n\nwhen I receive [purple c v]\nswitch costume to (purple v)\n\nwhen I receive [pink c v]\nswitch costume to (pink v)\n\nwhen I receive [black c v]\nswitch costume to (black v)\n\nwhen I receive [green c v]\nswitch costume to (green v)\n\nwhen I receive [red c v]\nswitch costume to (red v)\n\nwhen I receive [yellow c v]\nswitch costume to (yellow v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [Rainbow]> then\n        change [color v] effect by (10)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [rainbow c v]\nswitch costume to (rainbow v)\n\n@NEXT\n\nwhen flag clicked\nset [ghost v] effect to (20)\nhide\n\nwhen I receive [next v]\ngo to [front v] layer\nshow\ngo to x: (465) y: (0)\nglide (0.4) secs to x: (0) y: (0)\nglide (0.4) secs to x: (-465) y: (0)\nhide\n\n@Obstacle\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nswitch costume to (1 v)\nhide\n\nwhen I receive [next v]\nhide\nwait (0.5) seconds\nnext costume\nshow\n\n@Level\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\n\nwhen I receive [next v]\nnext costume\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n@Red\n\nwhen flag clicked\ngo to x: (-10) y: (70)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\nwhen this sprite clicked\nbroadcast (red c v)\n\n@Orange\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen flag clicked\ngo to x: (40) y: (70)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (orange c v)\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\n@Green\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen flag clicked\ngo to x: (-10) y: (25)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (green c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Yellow\n\nwhen flag clicked\ngo to x: (90) y: (70)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (yellow c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Blue\n\nwhen flag clicked\ngo to x: (40) y: (25)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (blue c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Pink\n\nwhen flag clicked\ngo to x: (-10) y: (-20)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (pink c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Black\n\nwhen flag clicked\ngo to x: (90) y: (-20)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (black c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [front v] layer\nhide\n\n@Light blue\n\nwhen flag clicked\ngo to x: (90) y: (25)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (light blue c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Purple\n\nwhen flag clicked\ngo to x: (40) y: (-20)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (purple c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@Rainbow\n\nwhen flag clicked\ngo to x: (140) y: (-20)\nset [customize open? v] to [no]\nhide\nforever\n    if <(love/fav) < [2]> then\n        set [customize open? v] to [no]\n    end\nend\n\nwhen I receive [function enabled v]\nif <(love/fav) = [2]> then\n    if <(Customize open?) = [yes]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (rainbow c v)\n\nwhen I receive [customize opened v]\ngo to [front v] layer\nshow\n\nwhen I receive [customize closed v]\ngo to [back v] layer\nhide\n\n@For no lag\n\n@Customize screen\n\nwhen this sprite clicked\nif <(love/fav) = [2]> then\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (customize open v)\n        broadcast (Customize opened v)\n    end\nend\n\nwhen flag clicked\ngo to x: (35) y: (30)\nset [love/fav v] to [0]\nset [customize open? v] to [no]\nswitch costume to (customize not open v)\n\nwhen this sprite clicked\nif <(love/fav) < [2]> then\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (not heart and star v)\n        wait (3) seconds\n        switch costume to (customize not open v)\n    end\nend\n\nwhen this sprite clicked\nif <(love/fav) = [2]> then\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (customize not open v)\n        broadcast (Customize closed v)\n    end\nend\n\n@Customize screen2\n\nwhen I receive [customize opened v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [customize closed v]\nhide\n\n@Love\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset [touching? v] to []\nset [love/fav v] to [0]\nforever\n    set [touching? v] to []\n    Detect [love] at [-201] [-220]\n    Detect [fav] at [-201] [-220]\nend\n\ndefine Detect (costume) at (x) (y)\nswitch costume to (costume1 v)\nset size to (28000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (costume)\nif <touching (mouse-pointer v)?> then\n    set [touching? v] to (costume [name v])\nend\n\nwhen flag clicked\nforever\n    wait until <(Touching?) = [love]>\n    wait (0.2) seconds\n    if <(Touching?) = [love]> then\n        change [love/fav v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(Touching?) = [fav]>\n    wait (0.2) seconds\n    if <(Touching?) = [fav]> then\n        change [love/fav v] by (1)\n        stop [this script v]\n    end\nend\n\n@Just something\n\nwhen flag clicked\nhide\nforever\n    if <(love/fav) = [2]> then\n        show\n        wait (3) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    else\n        hide\n    end\nend\n\n@Words\n\nwhen flag clicked\ngo to x: (140) y: (45)\nhide\n\nwhen I receive [customize opened v]\nshow\n\nwhen I receive [customize closed v]\nhide\n\n