Remix - A Platformer (mobile-friendly)
@Stage\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <([costume # v] of [platforms v]) = [11]> then\n        switch backdrop to (backdrop2 v)\n    else\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\ndefine Special Detections\nif <<touching (spikes v)?> or <<touching (sprite1 v)?> or <touching (the water  v)?>>> then\n    play sound [Crunch v] until done\n    change [deaths v] by (1)\n    repeat (20)\n        change [pixelate v] effect by (10)\n    end\n    hide\n    clear graphic effects\n    show\n    go to x: (-207) y: (-79)\nend\n\nwhen flag clicked\nshow\ngo to x: (-207) y: (-39)\nforever\n    switch costume to (11319744_48x3 v)\n    go to [front v] layer\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> or <key (d v) pressed?>> then\n            change [x v] by (1)\n        end\n        if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> then\n            change [x v] by (-1)\n        end\n        change x by (x)\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> then\n                set [y v] to [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <<touching (platforms v)?> or <touching (moving platform v)?>>> then\n            change [y v] by (14)\n        end\n        change y by (1)\n        Special Detections\n    end\nend\n\nwhen I receive [new level v]\ngo to x: (-207) y: (-79)\n\nwhen flag clicked\nreset timer\nset [timer: v] to [0]\nhide variable [timer: v]\nhide variable [deaths v]\nset [deaths v] to [0]\nchange [☁ data v] by (1)\nswitch costume to (11319744_48x3 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [2]> then\n        switch costume to (2 v)\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (-8)\n        end\n        delete this clone\n    else\n        switch costume to ( v)\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (-8)\n        end\n        delete this clone\n    end\nend\n\nwhen [space v] key pressed\nnext costume\n\nwhen flag clicked\nforever\n    change [timer: v] by (1)\nend\n\n@Platforms\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [new level v]\nnext costume\n\nwhen flag clicked\nset [level v] to [0]\nset [level v] to [0]\n\n@end\n\nwhen flag clicked\nshow\nset [level v] to [1]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (new level v)\n        change [level v] by (1)\n    end\nend\n\nshow\n\nhide variable [level v]\n\n@Spikes\n\nwhen I receive [new level v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
*RESHARED*\nWelcome to remix - a platformer ! \n\nInstructions :\nArrow keys/WASD/tap to move\nPress space to switch characters\nAvoid spikes and lava\n\nHope you enjoy! <3\nIt's EASY!\n\nAlso, follow @-messages- and @-Scratchy_Scratch- <3