Unique ( A Platformer) Mobile Friendly
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [551527_BOT-LAB v] until done\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@Blank\n\n@Player\n\nwhen I receive [start v]\nhide\ngo to [front v] layer\n\nwhen I receive [start v]\nbroadcast (Transition v)\nset [level v] to [1]\nforever\n    Game On\n    repeat until <(Finish) > []>\n        Movement\n    end\n    if <(Finish) = [Yes]> then\n        Game Con\n    else\n        Game End\n    end\nend\n\ndefine Game On\nset [sx v] to [0]\nset [x v] to [-214]\nset [y v] to [-110]\nset [sy v] to [0]\nset [in air v] to [0]\nset [finish v] to []\npoint in direction (90)\nshow\n\ndefine Movement\nif <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nDie\nPosition\nif <(y) < [-180]> then\n    set [finish v] to [No]\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: (x) y: (y)\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platform v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\nwhen I receive [start v]\nset size to (90) %\nshow\n\ndefine Game End\nbroadcast (Transition v)\nset [finish v] to []\nrepeat (2)\n    hide\n    wait (0.05) seconds\n    show\n    wait (0.05) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Die\nif <<touching (danger v)?> or <touching (enemy v)?>> then\n    set [finish v] to [No]\nend\n\ndefine Game Con\nhide\nbroadcast (Transition v)\nchange [level v] by (1)\nwait (0.5) seconds\n\nwhen I receive [start v]\nforever\n    if <touching (exit v)?> then\n        set [finish v] to [Yes]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n        broadcast (End v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\nbroadcast (outro v)\n\n@Platform\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Danger\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Enemy\n\ndefine clone at x: (x) y: (y) speed: (speed) size: (size)\nset size to (size) %\ngo to x: (x) y: (y)\nset [x v] to (speed)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    Physics\nend\n\ndefine Physics\nchange x by (x)\nchange [y v] by (-1)\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (1)\nend\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    change y by (-6)\n    repeat until <not <<touching (platform v)?> or <touching (_edge_ v)?>>>\n        change x by ((([abs v] of (x) ) / (x)) * (-1))\n    end\n    set [x v] to ((0) - (x))\nend\nchange y by (y)\nif <<touching (platform v)?> or <touching (_edge_ v)?>> then\n    repeat until <not <<touching (platform v)?> or <touching (_edge_ v)?>>>\n        change y by ((([abs v] of (y) ) / (y)) * (-1))\n    end\n    set [y v] to [0]\nend\n\nwhen I receive [create clone v]\nif <(Level) = [3]> then\n    clone at x: [73] y: [-139] speed: [2] size: [90]\nend\nif <(Level) = [7]> then\n    clone at x: [45] y: [-139] speed: [2] size: [90]\n    clone at x: [195] y: [-139] speed: [2] size: [90]\nend\nif <(Level) = [9]> then\n    clone at x: [195] y: [-139] speed: [3] size: [90]\n    clone at x: [76] y: [-139] speed: [3] size: [90]\n    clone at x: [-132] y: [-139] speed: [3] size: [90]\nend\nif <(Level) = [15]> then\n    clone at x: [195] y: [-139] speed: [3] size: [90]\n    clone at x: [76] y: [-139] speed: [3] size: [90]\n    clone at x: [-132] y: [-139] speed: [3] size: [90]\n    clone at x: [-15] y: [-139] speed: [3] size: [90]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [transition v]\ndelete this clone\n\nwhen I receive [transition v]\nwait (0.2) seconds\nbroadcast (Create Clone v)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n        delete this clone\n    end\nend\n\n@Transition\n\nwhen I receive [transition v]\ngo to [front v] layer\nswitch costume to (transition v)\ngo to x: (0) y: (0)\nglide (0.2) secs to x: (0) y: (0)\nglide (1) secs to x: (490) y: (0)\nhide\n\nwhen I receive [transition v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Exit\n\nwhen I receive [start v]\nshow\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Intro\n\nwhen flag clicked\nstart sound [Zaza - Be Together v]\ngo to x: (0) y: (0)\nswitch costume to (logo v)\npoint in direction (-70)\nset [ghost v] effect to (100)\nset size to (20) %\nshow\nrepeat (17)\n    turn left (10) degrees\n    change [ghost v] effect by (-5)\n    change size by (4)\nend\nrepeat (3)\n    turn left (7.5) degrees\n    change [ghost v] effect by (-3.75)\n    change size by (3)\nend\nrepeat (1)\n    turn left (5) degrees\n    change [ghost v] effect by (-2.5)\n    change size by (2)\nend\nrepeat (1)\n    turn left (3) degrees\n    set size to (100) %\n    clear graphic effects\nend\nwait (0.5) seconds\nwait (5.5) seconds\nstart sound [car passing v]\ncreate clone of (_myself_ v)\nswitch costume to (glide v)\ngo to x: (-800) y: (0)\nglide (0.2) secs to x: (0) y: (0)\nbroadcast (del v)\nglide (0.2) secs to x: (800) y: (0)\nhide\nbroadcast (Start v)\n\nwhen flag clicked\nwait (1.7) seconds\nset [x v] to [2]\nrepeat (8)\n    wait (0.4) seconds\n    create clone of (_myself_ v)\n    change [x v] by (1)\nend\nset [x v] to [999]\n\nwhen I receive [del v]\ndelete this clone\n\nwhen I start as a clone\nif <(x) = [999]> then\n\n@Outro\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\nset size to (110) %\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\npoint in direction (90)\n\nwhen I receive [outro v]\ngo to x: (0) y: (-25)\nshow\nset [sine v] to [0]\nswitch costume to (logo v)\nset [intro v] to [No]\ncreate clone of (_myself_ v)\nforever\n    change [sine v] by (7.5)\n    point in direction ((([sin v] of (sine) ) * (15)) + (90))\n    set size to ((([sin v] of ((sine) * (2)) ) * (25)) + (150)) %\nend\n\nwhen I receive [outro v]\nforever\n    play sound [Outro Music v] until done\nend\n\nwhen flag clicked\nhide\n\n@Assistant\n\nwhen I receive [start v]\nforever\n    if <(Level) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\n\n
*Click The Green Flag To Start.\n*Instructions Are In The Game.\n