Animal Rescue|| A Platformer v1.3

Instructions: I GOT 2ND IN THE CONTEST !\nHello Guys,\nWelcome to my First Game!\nAlso Congrats to @supersoniclva123 for 2k!\n1. Arrow Keys or WAS to move\n2.Spikes,Police and Guard is Decreases your level\n3.Touch the jail to win\n4.1 Heart = 1 Life\nWill be curated by @perfectly-unique soon\nStory\nThe Forest officer has called you and told you to save the animals from these poachers.... So all the best\nFamous ❤️ and ⭐\n@Coolbe22❤️\n@CristoferK❤️\n@rishavscratchwork ❤️\n@gunaswaminathan ❤️ \n@thecharpy ❤️ \n@ROMANIADANI ⭐ ❤️\n@supersoniclva123 ❤️ ⭐\n@GR8-Kings ❤️\n@1Sam87 ❤️ \n@perfectly-unique ⭐\n@KilluaXlikesGon❤️ \n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Imagine Dragons – Thunder 🎵 v] until done\nend\n\n@Player\n\ngo to x: (-209) y: (-111)\n\nif <<key (right arrow v) pressed?> or <key (s v) pressed?>> then\n    switch costume to (right v)\nend\n\ndefine Next Level Setting/Danger\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-230) y: (-53)\n\ndefine GP\nif <<key (right arrow v) pressed?> or <key (s v) pressed?>> then\n    change [x velocity v] by (2)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x velocity v] by (-2)\nend\nchange x by (X Velocity)\nDTCT\nif <touching (level v)?> then\n    change x by ((X Velocity) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n        if <(X Velocity) > [0]> then\n            set [x velocity v] to [-15]\n            set [y velocity v] to [10]\n        else\n            set [x velocity v] to [15]\n            set [y velocity v] to [10]\n        end\n    end\nelse\n    set [x velocity v] to ((X Velocity) * (0.8))\nend\nPlayer Eye Movement\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    change y by ((Y Velocity) * (-1))\n    set [y velocity v] to [0]\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n        if <(Jump) = [y]> then\n            set [y velocity v] to [12]\n            set [jump v] to [n]\n        end\n    end\nelse\n    change [y velocity v] by (-1)\n    set [jump v] to [y]\nend\nif <(x position) > [207]> then\n    change [level v] by (1)\n    Next Level Setting/Danger\nend\nif <touching (police/spikes/guards v)?> then\n    change [lives v] by (-1)\n    Next Level Setting/Danger\nend\nif <touching (jail v)?> then\n    broadcast (Gamer Over v)\nend\nif <touching (life v)?> then\n    change [lives v] by (1)\n    broadcast (Life +1  v)\nend\nif <(Lives) = [0]> then\n    hide variable [lives v]\n    broadcast (Loser v)\nend\nif <<(Level) = [3]> and <touching (police/spikes/guards v)?>> then\n    go to x: (-230) y: (-69)\nend\n\nwhen flag clicked\nswitch costume to (player v)\nNext Level Setting/Danger\nshow\nset [level v] to [1]\nset [lives v] to [7]\nshow variable [lives v]\nforever\n    GP\nend\n\ndefine DTCT\nset [sliding/slide ? v] to [0]\nrepeat until <<(Sliding/Slide ?) = [8]> or <not <touching (level v)?>>>\n    change y by (1)\n    change [sliding/slide ? v] by (1)\nend\nif <touching (level v)?> then\n    change y by (-8)\nend\n\ndefine Player Eye Movement\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    switch costume to (left v)\nend\nif <<key (right arrow v) pressed?> or <key (s v) pressed?>> then\n    switch costume to (right v)\nend\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n    switch costume to (up v)\nend\nif <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (up left v)\nend\nif <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> and <<key (right arrow v) pressed?> or <key (s v) pressed?>>> then\n    switch costume to (up right v)\nend\nif <not <key (any v) pressed?>> then\n    switch costume to (player v)\nend\n\nPlayer Eye Movement\n\n\n\n@Level\n\nwhen flag clicked\nswitch costume to (level v)\nforever\n    switch costume to (Level)\nend\n\n@Police/Spikes/Guards\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\ngo to [front v] layer\n\n@Trees\n\nwhen flag clicked\ngo to [back v] layer\n\n@Jail\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        show\n        go to x: (36) y: (28)\n    else\n        hide\n    end\nend\n\n@Win Screen\n\nwhen flag clicked\nhide\n\nwhen I receive [gamer over v]\nbroadcast (Lose / Won Text Hiding v)\nshow\n\n@Death Text\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\n\nforever\nend\n\nwhen I receive [lose / won text hiding v]\nhide\n\n@Life\n\nwhen flag clicked\nforever\n    Level 1 <>\n    Level 3 <>\n    Level Hiding\nend\n\ndefine Level 1 <1>\nif <(Level) = [1]> then\n    switch costume to (up v)\n    go to x: (36) y: (29)\n    show\n    repeat until <(Level) = [2]>\n        switch costume to (up v)\n        wait (0.5) seconds\n        switch costume to (down v)\n        wait (0.5) seconds\n    end\nelse\n    if <(Level) = [2]> then\n        hide\n    end\nend\n\nwhen I receive [life +1  v]\nhide\nswitch costume to (blank v)\nset size to (0.00000000000) %\n\ndefine Level 3 <3>\nif <(Level) = [3]> then\n    switch costume to (up v)\n    go to x: (152) y: (57)\n    show\n    repeat until <(Level) = [4]>\n        switch costume to (up v)\n        wait (0.5) seconds\n        switch costume to (down v)\n        wait (0.5) seconds\n    end\nelse\n    if <(Level) = [2]> then\n        hide\n    end\nend\n\ndefine Level Hiding\nif <not <<<(Level) = [3]> or <3>> or <<(Level) = [1]> or <1>>>> then\n    broadcast (Life +1  v)\nend\n\n@Lose Screen\n\nwhen flag clicked\nhide\n\nwhen I receive [loser v]\nbroadcast (Lose / Won Text Hiding v)\nshow\n\n@ThumbNAIL\n\nwhen flag clicked\nforever\n    reset timer\n    go to x: (300) y: (300)\n    hide\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.01)\nrepeat until <<(round (y position)) = [0]> and <(round (x position)) = [0]>>\n    show\n    change y by (((0) - (y position)) / (5))\n    change x by (((0) - (x position)) / (5))\nend\nwait (0.1) seconds\n\n