Adventure - Platformer  #platformer #games #all #trending #1
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (The Level)\nend\n\n@Player\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-210) y: (40)\n\nwhen flag clicked\nset [fall v] to [0]\nswitch costume to (kostium1 v)\nshow\nset [brightness v] effect to (0)\nset size to (90) %\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < [-50]> and <mouse down?>>> then\n        point in direction (-90)\n        change [x velocity v] by (-1.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(mouse x) > [50]> and <mouse down?>>> then\n        change [x velocity v] by (1.5)\n        point in direction (90)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > [-30]> and <mouse down?>>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > [-30]> and <mouse down?>>>> then\n        set [y velocity v] to [15]\n        broadcast (Jump v)\n    end\n    change y by (1)\n    if <<(x position) > [239]> or <<(y position) < [-185]> and <(The Level) = [8]>>> then\n        if <<(y position) < [-185]> and <(The Level) = [8]>> then\n            broadcast (Fall v)\n        else\n            if <<(x position) > [239]> and <(The Level) = [13]>> then\n                broadcast (Ending v)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                hide\n                stop [this script v]\n            else\n                broadcast (Next Level v) and wait\n                change [the level v] by (1)\n            end\n        end\n    end\n    if <<touching (danger v)?> or <<(y position) < [-185]> and <not <(The Level) = [8]>>>> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        broadcast (Reset v)\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen flag clicked\nshow variable [time v]\nreset timer\nforever\n    set [time v] to (round (timer))\nend\n\nwhen flag clicked\nforever\n    wait (pick random (5) to (10)) seconds\n    repeat (11)\n        next costume\n    end\nend\n\nwhen I receive [fall v]\nset [fall v] to [1]\nchange [the level v] by (1)\nrepeat until <(Fall) < [1]>\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    go to x: (0) y: (0)\nend\nchange [the level v] by (1)\n\nwhen flag clicked\nset [brightness v] effect to (0)\nforever\n    if <(The Level) > [8]> then\n        set [brightness v] effect to (-30)\n    end\nend\n\n@Level\n\nwhen flag clicked\nshow\nset [brightness v] effect to (0)\nforever\n    switch costume to (The Level)\nend\n\n@Danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nrepeat (20)\n    change [brightness v] effect by (5)\nend\nhide\n\n@Clouds\n\nwhen flag clicked\nshow\ngo to [back v] layer\nset size to (100) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\nswitch costume to (kostium2 v)\nset [x v] to [0]\ncreate clone of (_myself_ v)\nnext costume\nchange [x v] by (480)\nbroadcast (Start v)\n\nwhen I receive [start v]\nshow\nforever\n    set [screen x v] to ((X) - (Camera X))\n    set x to (((Screen x) mod ((480) * (2))) - (480))\n    set y to (0)\n    if <(The Level) > [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    change [camera x v] by (0.8)\nend\n\n@ Environment Art\n\nwhen flag clicked\nhide\n\n@Jump Particles\n\nwhen flag clicked\nhide\n\nwhen I receive [jump v]\nstart sound [Jump v]\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (100) %\ngo to (player v)\nshow\nrepeat (10)\n    if <(Fall) = [0]> then\n        change size by (-10)\n        change [ghost v] effect by (11)\n    else\n        repeat (4)\n            change size by (-3)\n            change [ghost v] effect by (4)\n            point in direction (0)\n            move (pick random (5) to (7)) steps\n        end\n    end\nend\ndelete this clone\n\nwhen I receive [fall v]\nwait (0.5) seconds\nrepeat (100)\n    create clone of (_myself_ v)\nend\nbroadcast (Fade out v)\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset [brightness v] effect to (0)\nforever\n    if <(The Level) > [8]> then\n        set [brightness v] effect to (-30)\n    end\nend\n\n@Curtain\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [fall v]\nset [ghost v] effect to (0)\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [fade out v]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nhide\nset [fall v] to [0]\nbroadcast (Next Level v)\n\nchange [the level v] by (1)\n\nset [the level v] to [8]\n\n@Ending\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [ending v]\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Music\n\nwhen flag clicked\nset [stop sound v] to [0]\nset volume to (20) %\nforever\n    if <(The Level) < [9]> then\n        start sound [Dance Around v]\n        wait (15.45) seconds\n    end\nend\n\nwhen I receive [fall v]\nstop all sounds\nforever\n    if <(Stop Sound) = [0]> then\n        start sound [Dance Chill Out v]\n        wait (10) seconds\n    end\nend\n\nwhen I receive [ending v]\nset [stop sound v] to [1]\nstop all sounds\nforever\n    start sound [Dance Around v]\n    wait (15.45) seconds\nend\n\n@Sprite1Sprite1\n\nwhen flag clicked\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\n\n
Get ready for a great Adventure! Discover the Green Land! Find... [work in progress].\n\nControls:\nA / Left Arrow / Touch Left - move left\nD / Right Arrow / Touch Right - move right\nW / Up Arrow / Touch Up - jump\n\nAvoid spikes and lava to reach the... \n[work in progress].\n\nLove, fav and follow for... [work in progress].\n