My Notebook [ A Mobile Friendly Platformer ]

Instructions:                                 ★How To Play★\n- Wasd or Arrow keys to move or touch screen\n- Don't touch spikes, saw. lava,... !!!\n===========================================\n                                     ★Goals★\n-15000+ views\n- 500+ Loves And Favs\n===========================================\n                                      ★Ads★       \n             https://scratch.mit.edu/projects/588626686       

@Stage\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\n\nwhen I receive [next v]\nnext backdrop\n\n@Picture\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\nrepeat (20)\n    change [ghost v] effect by (7)\nend\nbroadcast (Start v)\n\nwhen I receive [start v]\nforever\n    play sound [Music v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\nhide variable [x v]\nhide variable [y v]\nhide variable [jump v]\nswitch costume to (normal v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nset size to (100) %\ngo to x: (-191) y: (1)\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [x v] by (1.5)\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [x v] by (-1.5)\n        switch costume to (left  v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up right v)\n    end\n    if <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up left v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n        switch costume to (normal v)\n    end\n    change x by (X)\n    if <touching (ground 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            if <(X) > [0]> then\n                set [x v] to [-15]\n                set [y v] to [10]\n            else\n                set [x v] to [15]\n                set [y v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    else\n        set [x v] to ((X) * (0.8))\n    end\n    change y by (Y)\n    if <touching (ground 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            switch costume to (up v)\n            if <(Jump) = [yes]> then\n                set [y v] to [12]\n                set [jump v] to [no]\n            end\n        end\n    else\n        change [y v] by (-1)\n        set [jump v] to [yes]\n    end\n    if <(x position) > [225]> then\n        set size to (100) %\n        go to x: (-191) y: (1)\n        broadcast (Next v)\n    end\n    if <<touching (spikes v)?> or <touching (saw v)?>> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set size to (100) %\n        go to x: (-191) y: (1)\n        set [ghost v] effect to (0)\n    end\n    if <touching color (#f4f800)?> then\n        set [y v] to [17]\n    end\n    if <touching color (#b800f7)?> then\n        set [y v] to [-17]\n    end\nend\n\n@Ground\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\n@Saw\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        go to x: (71) y: (-97)\n        turn right (5) degrees\n    end\n    if <(costume [number v]) = [10]> then\n        go to x: (195) y: (-97)\n        turn right (5) degrees\n    end\nend\n\n