Color - A Platformer | NOW MOBILE!!

Instructions: EDIT 1/20/24 — MOM, I’M FAMOUS!!\n\nUse arrow keys for computer\ndrag the player for mobile\nNot fully done yet\n-There may be a part 2-\n-idk when it is coming-\n-mabey there wont be one-

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\n\n@player\n\nwhen I receive [next level v]\nswitch costume to (stare v)\ngo to x: (-226) y: (-30)\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (13)\nend\nhide\ndelete this clone\n\nwhen I receive [death v]\ngo to x: (-226) y: (-30)\n\nwhen flag clicked\nswitch costume to (stare v)\nhide\n\nwhen flag clicked\nswitch backdrop to (backdrop0.5 v)\nshow\ngo to x: (-210) y: (200)\nhide variable [score v]\nset [score v] to [0]\nset [my variable v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [my variable v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        change [my variable v] by (-0.7)\n    end\n    set [my variable v] to ((my variable) * (0.9))\n    change x by (my variable)\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 ((my variable) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(my variable) > [0]> then\n                                    set [my variable v] to [-1]\n                                else\n                                    set [my variable v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [my variable 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            start sound [Jump v]\n            switch costume to (stare v)\n            set [yv v] to [11]\n        end\n    end\n    change y by (1)\n    if <touching (next level v)?> then\n        broadcast (Next level v)\n        start sound [Coin v]\n    end\n    if <<touching (danger v)?> or <touching (lava rises v)?>> then\n        start sound [Low Whoosh v]\n        switch costume to (stare v)\n        broadcast (death v)\n    end\n    if <touching (trampoline  v)?> then\n        start sound [Boing v]\n        set [yv v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    play sound [Coffin Dance  v] until done\nend\n\nwhen flag clicked\nforever\n    set drag mode [draggable v]\nend\n\nwhen flag clicked\nforever\n    if <touching (baddies v)?> then\n        change [☁ no. of hearts: v] by (-1)\n        go to x: (-226) y: (-30)\n    end\n    if <(☁ No. Of Hearts:) = [0]> then\n        broadcast (game over v)\n    end\nend\n\nwhen flag clicked\nset [☁ no. of hearts: v] to [3]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (safe v)\n    end\nend\n\nwhen I receive [safe v]\nforever\n    if <touching (baddies v)?> then\n        change x by (20)\n    end\nend\n\nwhen I receive [death v]\ngo to x: (-226) y: (-30)\n\nwhen flag clicked\nset drag mode [draggable v]\n\nwhen flag clicked\nask [Enable mobile mode? \(Type Y or N\)] and wait\nif <(answer) = [Y]> then\n    broadcast (ENABLE MOBILE v)\nend\n\n@Level\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo [backward v] (100) layers\nswitch costume to (costume1 v)\nshow\n\n@Danger\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (lvl 1 v)\nshow\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (jump v)\n    end\nend\n\n@Trampoline \n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        go to x: (-111) y: (-87)\n    end\n    if <(costume [number v]) = [8]> then\n        go to x: (-46) y: (-86)\n    end\nend\n\n@THUMBNAIL\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [game over v]\nswitch costume to (costume2 v)\n\n@Next level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [ghost v] effect to (0)\nforever\n    if <touching (player v)?> then\n        broadcast (Next level v)\n    end\nend\n\nwhen I receive [cave v]\nswitch costume to (costume12 v)\n\nwhen I receive [put v]\nswitch costume to (costume1 v)\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (baddies and bubbles v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (cave v)\n    end\n    if <(costume [number v]) = [13]> then\n        broadcast (put v)\n    end\nend\n\nwhen flag clicked\ngo [backward v] (3) layers\n\n@BADDIES\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nrepeat until <touching (next level v)?>\n    hide\nend\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    switch costume to (left v)\n    wait (1) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [baddies and bubbles v]\nshow\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (death v)\n    end\nend\n\n@color\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to (mouse-pointer v)\nrepeat (10)\n    change size by (5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <key (space v) pressed?> then\n        hide\n    end\n    if <key (z v) pressed?> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (5)\nend\n\n@Sprite3\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen this sprite clicked\nwait (1) seconds\nswitch costume to (costume3 v)\nwait (1) seconds\nswitch costume to (costume1 v)\nwait (1) seconds\n\n@Sprite4\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen this sprite clicked\nswitch costume to (costume3 v)\nwait (1) seconds\nswitch costume to (costume1 v)\n\n@Sprite5\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Next level v)\n\n