Pastel - A Mobile Friendly Platformer - 10 Levels
@Stage\n\nwhen flag clicked\nforever\n    play sound [ Sunlight v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [Tropical Birds v] until done\nend\n\n@Sprite1\n\ndefine Physics\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [x v] by (2)\n    create clone of (_myself_ v)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [x v] by (-2)\n    create clone of (_myself_ v)\nend\nchange x by (x)\nSlope detection\nif <touching (danger v)?> then\n    change x by ((x) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        create clone of (_myself_ v)\n        if <(x) > [0]> then\n            set [x v] to [-10]\n            set [y v] to [10]\n        else\n            set [x v] to [10]\n            set [y v] to [10]\n        end\n    else\n        set [x v] to [0]\n    end\nelse\n    set [x v] to ((x) * (0.8))\nend\nchange y by (y)\nif <touching (danger v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        create clone of (_myself_ v)\n        if <(Jumping?) = [y]> then\n            set [y v] to [12]\n            set [jumping? v] to [n]\n        end\n    end\nelse\n    change [y v] by (-1)\n    set [jumping? v] to [y]\nend\nif <<(x position) > [225]> and <not <([costume # v] of [danger v]) = [11]>>> then\n    Restart\n    change [level v] by (1)\nend\nif <(y position) < [-179]> then\n    Restart\nend\nif <touching (safety v)?> then\n    Restart\nend\n\ndefine Slope detection\nset [sloppe v] to [0]\nrepeat until <<(Sloppe) = [8]> or <not <touching (danger v)?>>>\n    change y by (1)\n    change [sloppe v] by (1)\nend\nif <touching (danger v)?> then\n    change y by (-8)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [level v] to [1]\nshow\nRestart\nforever\n    Physics\nend\n\ndefine Restart\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (500)\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (11)\n    change [color v] effect by (1)\nend\ndelete this clone\n\n@Safety\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [11]> then\n        forever\n            switch costume to (end v)\n        end\n    end\nend\n\n@Danger\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (red v)\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [11]> then\n        forever\n            switch costume to (end v)\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (1) layers\nset [ghost v] effect to (100)\n\nset [ghost v] effect to (0)\n\n
All art by @KafwieGiraffe\ncode is by @atomicsapper101\n\nsequel?? -> https://scratch.mit.edu/projects/451245286/\n\nclick the green flag and use WASD or arrow keys to move\n\nmobile friendly too so js click on the screen you'll figure it out\n\nhihihihi if u remix u should chnage some things like the stages for example idk ty tho