Leprechaun || Platformer || #games #animations #tutorials #music #stories #trending
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (The Level)\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento-masked-heroes-1-AHM56EBq6 \(1\) v] until done\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (The Level)\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-197) y: (-81)\nset [the level v] to [1]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X velocity) * (0.85))\n    change x by (X velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground 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?>> 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 (ground v)?> then\n        change y by ((Y velocity) - ((Y velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <<touching (spikes v)?> or <<touching (saw v)?> or <touching (sprite3 v)?>>> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n        if <touching (lava v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nbroadcast (Next Level v)\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nset [timer v] to [0]\nhide variable [timer v]\nforever\n    wait (1) seconds\n    change [timer v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [6]> then\n        broadcast (end v)\n    end\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nshow variable [timer v]\nset [timer v] to (Timer)\n\n@Sprite1\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (50)\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Saw\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    turn right (5) degrees\nend\n\nwhen flag clicked\nshow\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [3]> then\n        go to x: (22) y: (25)\n    end\n    if <(The Level) = [5]> then\n        go to x: (176) y: (-90)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(The Level) = [6]> then\n        show\n        go to [front v] layer\n    end\n    if <not <(The Level) = [6]>> then\n        hide\n    end\nend\n\n@Light\n\nwhen flag clicked\nforever\n    wait (0.09) seconds\n    repeat until <(size) > [99]>\n        repeat (10)\n            change size by (2)\n        end\n    end\n    wait (0.09) seconds\n    repeat until <(size) < [81]>\n        repeat (10)\n            change size by (-2)\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nforever\n    go to (player v)\nend\n\nwhen flag clicked\ngo [forward v] (2) layers\ngo to [back v] layer\nshow\n\nwhen flag clicked\nforever\n    if <(The Level) = [6]> then\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Clouds\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [images2 v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nshow\nrepeat (10)\n    change [ghost v] effect by (-25)\nend\n\nwhen I receive [gamestart v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [costume change v]\nrepeat (10)\n    change [ghost v] effect by (25)\nend\n\nwhen backdrop switches to [images4 v]\nhide\n\nwhen backdrop switches to [images2 v]\nset [turn v] to [0]\ngo to x: (0) y: (-150)\nset size to (100) %\nforever\n    change [turn v] by (4)\n    change size by ((0.1) * ([cos v] of (turn) ))\n    if <(turn) > [360]> then\n        set [turn v] to [0]\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (pick random (50) to (70)) %\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (30) to (45))\nset [gravity v] to (pick random (1) to (2))\nif <(gravity) = [1]> then\n    go to x: (246) y: (pick random (131) to (0))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (131) to (0))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    wait (pick random (2) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\n@download\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n
Hello I really hope you enjoy! Please Love, Fav and Follow!!\n\n100% possible\nArrow keys or WASD\nAvoid spikes, and saw\nBeat your time record\n\n@-Waffle_Animator- for spike art\n@HeliosOfficial for clouds\n@-ComplexCode721- for light\n@--Awesomecode-- for player scripts\nme