Green ninja platformer v1.3
@Stage\n\n@Ninjan\n\nwhen flag clicked\nset [x speed v] to [0]\nset [y speed v] to [0]\nReset\nforever\n    Movement\n    if <(x position) > [238]> then\n        broadcast (Next Level v)\n        Reset\n    end\nend\n\ndefine Reset\ngo to x: (-178) y: (0)\n\ndefine Movement\nchange [y speed v] by (-1)\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x speed v] by (-1)\n    switch costume to (disfraz4 v)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x speed v] by (1)\n    switch costume to (disfraz3 v)\nend\nset [x speed v] to ((X Speed) * (0.9))\nchange x by (X Speed)\nif <touching (lvls v)?> then\n    change y by (1)\nend\nif <touching (lvls v)?> then\n    change y by (1)\nend\nif <touching (lvls v)?> then\n    change y by (1)\nend\nif <touching (lvls v)?> then\n    change y by (1)\nend\nif <touching (lvls v)?> then\n    change y by (4)\n    change x by ((X Speed) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n        set [y speed v] to [13]\n        if <(X Speed) > [0]> then\n            set [x speed v] to [-10]\n        else\n            set [x speed v] to [10]\n        end\n    else\n        set [x speed v] to [0]\n    end\nend\nchange y by (Y Speed)\nif <touching (lvls v)?> then\n    change y by ((Y Speed) * (-1))\n    set [y speed v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> and <touching (lvls v)?>> then\n    set [y speed v] to [15]\nend\nchange y by (1)\n\nwhen flag clicked\nshow\nforever\n    if <touching (spikes v)?> then\n        Reset\n    end\nend\n\nhide\n\nwhen [m v] key pressed\n\nhide\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (14)\nend\ndelete this clone\n\nshow\n\n@Lvls\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\nwhen [m v] key pressed\n\nswitch costume to (disfraz1 v)\n\n@Spikes\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\ngo to x: (0) y: (0)\n\nwhen [m v] key pressed\n\nswitch costume to (disfraz1 v)\n\n@Objeto2\n\nwhen flag clicked\nhide\n\nwhen [m v] key pressed\n\nforever\n\nshow\n\n
W,A,S,D, space or keyboard keys to play.\n=========================================\nWelcome to my second platformer, I did this project because in my previous platformer I had a lot of success so I hope this one too\n=========================================\nHere is my frist platformer:\nhttps://scratch.mit.edu/projects/534220889/\nHacked:\nhttps://scratch.mit.edu/projects/538365204/