Purple | Platformer

Instructions:          ========= Purple | Platformer========\n\nPress s to Skip level if too hard\nPress n to die if stuck\n        \nWARNING: there is a bug where you stick to a wall when you wall jump. I'm so sorry, I tried to fix the bug many times, but i can't. \n\nThanks for playing make sure to love, fav, and follow!\n\nIf you get through the last level, type #proplayer in the comments\n\n\n

@Stage\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [asdf v]\nforever\n    if <key (s v) pressed?> then\n        go to x: (-195) y: (17)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        broadcast (level-up v)\n        wait (1) seconds\n    end\n    if <key (n v) pressed?> then\n        go to x: (-195) y: (17)\n    end\nend\n\nwhen I receive [asdf v]\ngo to [front v] layer\nshow\npoint in direction (90)\ngo to x: (-200) y: (130)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <touching color (#ff00ce)?> then\n        switch costume to (costume2 v)\n        start sound [Oops v]\n        start sound [bxsb v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        point in direction (90)\n        go to x: (-195) y: (17)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        clear graphic effects\n    end\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [xv v] by (0.6)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [xv v] by (-0.6)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n        change y by (1)\n        if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n            change y by (1)\n            if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n                change y by (1)\n                if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n                    change y by (1)\n                    if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n                        change y by (1)\n                        if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n                            change x by ((Xv) * (-0.5))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                start sound [jump v]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\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    if <(x position) > [250]> then\n        start sound [Collect v]\n        point in direction (90)\n        go to x: (-195) y: (17)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        broadcast (level-up v)\n    end\n    change y by (Yv)\n    if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#a100ff)?> or <touching (sprite1 v)?>> then\n        if <key (up arrow v) pressed?> then\n            start sound [jump v]\n            set [yv v] to [8]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [player hide v]\nhide\n\nwhen I receive [asdf v]\nforever\n    play sound [TheFatRat - Windfall \[Tasty Release\] v] until done\nend\n\nchange y by (10)\nset y to (10)\n\nwhen flag clicked\nforever\n    if <touching color (#1c00ff)?> then\n        repeat (10)\n            set [yv v] to [8]\n        end\n    end\nend\n\ngo to [front v] layer\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen I receive [message3 v]\nshow\ngo to x: (0) y: (0)\nwait (2) seconds\nhide\nbroadcast (asdf v)\n\n@Intro\n\nwhen flag clicked\nset size to (100) %\nhide\ngo to x: (11) y: (43)\npoint in direction (90)\n\nwhen I receive [message1 v]\nswitch costume to (profile-spic v)\nshow\nset volume to (50) %\nstart sound [Intro v]\ncreate clone of (_myself_ v)\nrepeat (5)\n    change volume by (-5)\n    repeat (20)\n        change size by (0.5)\n    end\n    wait (0.1) seconds\n    repeat (20)\n        change size by (-0.5)\n    end\n    wait (0.1) seconds\nend\nstop all sounds\nhide\nbroadcast (message3 v)\n\nwhen I start as a clone\nswitch costume to (love, fvaorite, follow v)\ngo to x: (12) y: (-116)\nrepeat (5)\n    repeat (20)\n        change size by (0.5)\n    end\n    wait (0.1) seconds\n    repeat (20)\n        change size by (-0.5)\n    end\n    wait (0.1) seconds\nend\nhide\n\nplay sound [explbomb v] until done\n\n@intro \n\nwhen flag clicked\nshow\nstart sound [Whoop v]\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nrepeat (20)\n    change [brightness v] effect by (5)\nend\nbroadcast (message1 v)\nhide\n\n@platform\n\nwhen I receive [asdf v]\ngo to x: (0) y: (0)\nshow\nforever\n    if <(costume [number v]) = [18]> then\n        broadcast (challange v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [level-up v]\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <([costume name v] of [platform v]) = [costume19]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [platform v]) = [19]> then\n        repeat until <not <([costume # v] of [platform v]) = [19]>>\n            show\n            wait (pick random (1) to (2)) seconds\n            switch costume to (costume2 v)\n            say [HEHEHEHEE....] for (2) seconds\n            switch costume to (costume1 v)\n        end\n        hide\n    else\n        hide\n    end\nend\n\n