Ninja ( Platformer )
@Stage\n\nwhen flag clicked\nswitch backdrop to (  v)\n\n    play sound [Clean_Bandit_-_Rather_Be_feat v] until done\nend\n\n@ \n\ndefine Gravity\nchange [gravity v] by (-1)\nchange y by (Gravity)\nif <touching (    v)?> then\n    set [gravity v] to [0]\n    change y by (1)\nend\n\nwhen flag clicked\nset [gravity v] to [0]\nforever\n    Gravity\nend\n\nwhen flag clicked\nhide\nbroadcast (start v)\n\nwhen I receive [start v]\ngo to x: (-71) y: (-116)\nset size to (80) %\nswitch costume to (  v)\nshow\nwait (1.5) seconds\nrepeat (4)\n    next costume\n    wait (0.1) seconds\nend\nwait (2) seconds\nswitch costume to (  v)\nwait (0.3) seconds\nswitch costume to (  4 v)\nwait (2) seconds\nrepeat (6)\n    next costume\n    wait (0.15) seconds\nend\nswitch costume to (  4 v)\nwait (1) seconds\nbroadcast (T.P.M v)\nstop [this script v]\n\nwhen I receive [t.p.m v]\nrepeat until <(backdrop [number v]) = [2]>\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <(x position) > [158]> then\n        switch backdrop to (   v)\n        go to x: (-202) y: (-105)\n        broadcast (LVL 1 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 1 v]\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-202) y: (-105)\n    end\n    if <(x position) > [158]> then\n        switch backdrop to (         v)\n        go to x: (-202) y: (-105)\n        broadcast (LVL 2 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lvl 2 v]\ngo to x: (-203) y: (-92)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-203) y: (-92)\n    end\n    if <(x position) > [158]> then\n        switch backdrop to (     v)\n        go to x: (-203) y: (-105)\n        broadcast (LVL 3 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lvl 3 v]\ngo to x: (-201) y: (-92)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-201) y: (-92)\n    end\n    if <touching (        v)?> then\n        go to x: (-201) y: (-92)\n    end\n    if <(x position) > [158]> then\n        switch backdrop to (      v)\n        go to x: (-203) y: (-105)\n        broadcast (LVL 4 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lvl 4 v]\ngo to x: (-209) y: (-125)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-201) y: (-92)\n    end\n    if <touching (        v)?> then\n        go to x: (-201) y: (-92)\n    end\n    if <(x position) > [158]> then\n        switch backdrop to (    v)\n        go to x: (-203) y: (-105)\n        broadcast (LV 5 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lv 5 v]\nset size to (50) %\ngo to x: (-204) y: (-148)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-204) y: (-148)\n    end\n    if <touching (        v)?> then\n        go to x: (-204) y: (-148)\n    end\n    if <<(y position) > [99]> and <(x position) > [158]>> then\n        switch backdrop to (       v)\n        go to x: (-203) y: (-105)\n        broadcast (LVL 6 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lvl 6 v]\nset size to (50) %\ngo to x: (-212) y: (-150)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-204) y: (-148)\n    end\n    if <touching (        v)?> then\n        go to x: (-204) y: (-148)\n    end\n    if <<(y position) > [129]> and <(x position) > [200]>> then\n        switch backdrop to (            v)\n        go to x: (-203) y: (-105)\n        broadcast (LVL 7 v)\n        stop [this script v]\n    end\n    change y by ((1500) * (0.01))\nend\n\nwhen I receive [lvl 7 v]\nset size to (50) %\ngo to x: (-210) y: (130)\n\n    if <key (left arrow v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (right arrow v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <key (a v) pressed?> then\n        change x by ((-600) * (0.01))\n    end\n    if <key (d v) pressed?> then\n        change x by ((600) * (0.01))\n    end\n    if <touching (      v)?> then\n        go to x: (-210) y: (130)\n    end\n    if <touching (        v)?> then\n        go to x: (-210) y: (130)\n    end\n    if <<(y position) < [160]> and <(x position) > [207]>> then\n        switch backdrop to (          v)\n        go to x: (-203) y: (-105)\n        broadcast (LVL 8 v)\n        stop [this script v]\n    end\n    if <(y position) < [-166]> then\n        go to x: (-210) y: (130)\n    end\nend\n\nwhen I receive [lvl 8 v]\nset size to (100) %\ngo to x: (-20) y: (-129)\n\nwhen flag clicked\n\n    if <<touching (      v)?> or <touching (        v)?>> then\n        play sound [kill v] until done\n    end\nend\n\nwhen I receive [lvl 1 v]\nrepeat until <(backdrop [number v]) = [8]>\n    play sound [jump v] until done\n    wait (0.5) seconds\nend\n\n@   \n\nwhen I receive [start v]\nswitch costume to (costum1 v)\ngo to x: (-14) y: (-134)\nshow\n\nwhen I receive [lvl 1 v]\nswitch costume to (costum2 v)\ngo to x: (35) y: (-144)\n\nwhen I receive [lvl 2 v]\nswitch costume to (costum3 v)\ngo to x: (-4) y: (-117)\n\nwhen I receive [lvl 4 v]\nswitch costume to (costum5 v)\ngo to x: (-4) y: (-117)\n\nwhen I receive [lvl 3 v]\nswitch costume to (costum4 v)\ngo to x: (-4) y: (-128)\n\nwhen I receive [lv 5 v]\nswitch costume to (costum6 v)\ngo to x: (0) y: (-35)\n\nwhen I receive [lvl 6 v]\nswitch costume to (costum7 v)\ngo to x: (6) y: (-2)\n\nwhen I receive [lvl 7 v]\nswitch costume to (costum8 v)\ngo to x: (6) y: (-2)\n\nwhen I receive [lvl 8 v]\nswitch costume to (costum9 v)\ngo to x: (-11) y: (-149)\n\n@    \n\nwhen I receive [start v]\nhide\nset size to (70) %\ngo to x: (-3) y: (183)\n\nwhen I receive [t.p.m v]\ncreate clone of (_myself_ v)\nswitch costume to (costum1 v)\nshow\nglide (1) secs to x: (36) y: (3)\nrepeat (1)\n    go to x: (17) y: (3)\n    glide (1) secs to x: (36) y: (3)\nend\nhide\n\n    if <(backdrop [number v]) = [2]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costum2 v)\nshow\nglide (1) secs to x: (18) y: (162)\n\n    if <(backdrop [number v]) = [2]> then\n        hide\n        stop [this script v]\n    end\nend\ndelete this clone\n\nwhen I receive [lvl 1 v]\nswitch costume to (costum3 v)\ngo to x: (6) y: (141)\nshow\n\n    if <(backdrop [number v]) = [3]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 2 v]\nswitch costume to (costum4 v)\ngo to x: (6) y: (141)\nshow\n\n    if <(backdrop [number v]) = [4]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 3 v]\nswitch costume to (costum5 v)\ngo to x: (6) y: (141)\nshow\n\n    if <(backdrop [number v]) = [5]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 4 v]\nswitch costume to (costum6 v)\ngo to x: (6) y: (141)\nshow\n\n    if <(backdrop [number v]) = [6]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 7 v]\nswitch costume to (costum7 v)\ngo to x: (6) y: (141)\nshow\n\n    if <(backdrop [number v]) = [9]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 8 v]\nshow\nswitch costume to (costum8 v)\nwait (10) seconds\nstop [all v]\n\n@     \n\nwhen I receive [lvl 7 v]\nrepeat until <(backdrop [number v]) = [9]>\n    turn left (20) degrees\n    wait (0.01) seconds\nend\nrepeat until <(backdrop [number v]) = [9]>\n    hide\n    stop [this script v]\nend\n\nwhen I receive [lvl 7 v]\nset rotation style [all around v]\nswitch costume to (costum3 v)\ngo to x: (-240) y: (51)\nshow\nrepeat until <(backdrop [number v]) = [9]>\n    glide (2.5) secs to x: (240) y: (51)\n    glide (2.5) secs to x: (-240) y: (51)\nend\nrepeat until <(backdrop [number v]) = [9]>\n    hide\n    stop [this script v]\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [lvl 1 v]\ngo to x: (-36) y: (-117)\nswitch costume to (costum1 v)\nset size to (100) %\nshow\n\nwhen I receive [lvl 2 v]\nshow\ngo to x: (-59) y: (-153)\nswitch costume to (costum2 v)\nset size to (100) %\nset [ghost v] effect to (30)\nset [fisheye v] effect to (30)\nset [brightness v] effect to (30)\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (-75) y: (-143)\nswitch costume to (costum2 v)\nset [ghost v] effect to (0)\nset [fisheye v] effect to (0)\nset [brightness v] effect to (0)\n\nwhen I receive [lvl 4 v]\nshow\ngo to x: (118) y: (-147)\nswitch costume to (costum2 v)\nset [ghost v] effect to (0)\nset [fisheye v] effect to (0)\nset [brightness v] effect to (0)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nswitch costume to (costum2 v)\ngo to x: (-130) y: (-143)\nrepeat until <(backdrop [number v]) = [7]>\n    if <(backdrop [number v]) = [6]> then\n        delete this clone\n    end\nend\nstop [this script v]\n\nwhen I receive [lv 5 v]\nhide\n\nwhen I receive [lvl 8 v]\nhide\n\n@      \n\nwhen I receive [lvl 1 v]\nset size to (100) %\nswitch costume to (costum1 v)\ngo to x: (0) y: (-67)\nshow\nset [ghost v] effect to (30)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [lvl 2 v]\nswitch costume to (costum2 v)\n\n@       \n\nwhen flag clicked\nhide\npoint in direction (90)\nset size to (100) %\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (77) y: (-96)\nswitch costume to (costum1 v)\n\nwhen I receive [lvl 4 v]\nshow\ngo to x: (2) y: (-104)\nswitch costume to (costum1 v)\nset [ghost v] effect to (0)\nset [fisheye v] effect to (0)\nset [brightness v] effect to (0)\n\nwhen I receive [lv 5 v]\nhide\n\nwhen I receive [lvl 7 v]\nset rotation style [all around v]\nswitch costume to (costum3 v)\ngo to x: (240) y: (51)\nshow\nrepeat until <(backdrop [number v]) = [9]>\n    glide (2.5) secs to x: (-240) y: (51)\n    glide (2.5) secs to x: (240) y: (51)\nend\nrepeat until <(backdrop [number v]) = [9]>\n    hide\n    stop [this script v]\nend\n\nwhen I receive [lvl 7 v]\nrepeat until <(backdrop [number v]) = [9]>\n    turn right (20) degrees\n    wait (0.01) seconds\nend\nrepeat until <(backdrop [number v]) = [9]>\n    hide\n    stop [this script v]\nend\n\nwhen I receive [lvl 8 v]\nhide\n\n@        \n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\n
   *It's reposted , I delete or of wrong ! :) (original post 02.30.21)\n*First platformer out !                                                                       \n*Use left and right arrows to move                                                      \n   *Follow the game instructions                                              \n*Try to beat it !                                                                               \n   *Have fun ! \n\n                          Tags:\n#Platformer #Ninja #Code #Art #ROMANIADANI #Trending #Levels #Views #Love #Fave #First one #Romania