My first game - Adventurer - A mobile platformer                             #games #all
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    if <(Level) = [11]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Level) = [12]> then\n        switch backdrop to (backdrop3 v)\n    end\n    if <(Level) = [16]> then\n        switch backdrop to (backdrop4 v)\n    end\n    if <(Level) = [17]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\nwhen flag clicked\nhide\nset [level v] to [1]\n\ndefine Player Physics\ngo to [front v] layer\ngo [backward v] (85) layers\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [playerx v] by (1)\n    switch costume to (player - right v)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [playerx v] by (-1)\n    switch costume to (player - left v)\nend\nif <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n    switch costume to (player - normal v)\nend\nchange x by (PlayerX)\nif <touching (platforms v)?> then\n    change x by ((PlayerX) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        if <(PlayerX) > [0]> then\n            set [playerx v] to [-15]\n            set [playery v] to [10]\n        else\n            set [playerx v] to [15]\n            set [playery v] to [10]\n        end\n    else\n        set [playerx v] to [0]\n    end\nelse\n    set [playerx v] to ((PlayerX) * (0.8))\nend\nchange y by (PlayerY)\nif <touching (platforms v)?> then\n    change y by ((PlayerY) * (-1))\n    set [playery v] to [0]\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (player - up v)\n        if <(Jumping?) = [yes]> then\n            set [playery v] to [12]\n            set [jumping? v] to [no]\n        end\n    end\nelse\n    change [playery v] by (-1)\n    set [jumping? v] to [yes]\nend\nif <(x position) > [239]> then\n    change [level v] by (1)\n    go to x: (-190) y: (0)\n    set [playerx v] to [0]\n    set [playery v] to [0]\nend\nif <<touching (jump v)?> or <<touching (jump2 v)?> or <touching (jump3 v)?>>> then\n    if <(Jumping?) = [yes]> then\n        set [playery v] to [16]\n        set [jumping? v] to [no]\n    end\nend\nif <touching (danger v)?> then\n    go to x: (-190) y: (0)\n    set [playerx v] to [0]\n    set [playery v] to [0]\nend\nif <<touching color (#0c9e00)?> or <touching color (#77c22d)?>> then\n    broadcast (End v)\n    hide\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        wait until <not <key (s v) pressed?>>\n        change [level v] by (1)\n        go to x: (-190) y: (0)\n        set [playerx v] to [0]\n        set [playery v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        wait until <not <key (r v) pressed?>>\n        go to x: (-190) y: (0)\n        set [playerx v] to [0]\n        set [playery v] to [0]\n    end\nend\n\nwhen I receive [start v]\nshow\npoint in direction (90)\ngo to x: (-190) y: (0)\nset [playerx v] to [0]\nset [playery v] to [0]\nforever\n    Player Physics\nend\n\n@Platforms\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\n@Jump\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [3]> then\n        show\n        go to x: (0) y: (-28)\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (0) y: (-28)\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        show\n        go to x: (0) y: (-23)\n    end\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        repeat (7)\n            next costume\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\n@Texts\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end v]\nhide\n\n@Jump2\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [8]> then\n        show\n        go to x: (-131) y: (-28)\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        show\n        go to x: (40) y: (-23)\n    end\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        repeat (7)\n            next costume\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Jump3\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [8]> then\n        show\n        go to x: (131) y: (-28)\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        show\n        go to x: (-40) y: (-23)\n    end\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        repeat (7)\n            next costume\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Light\n\nwhen flag clicked\nshow\nhide variable [battery v]\nset [battery v] to [100]\nset [flashlight on? v] to [no]\nset [ghost v] effect to (40)\nswitch costume to (costume2 v)\nforever\n    go to (player v)\n    if <key (f v) pressed?> then\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Flashlight On?) = [yes]> then\n        wait (2) seconds\n        change [battery v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [flashlight on? v] to [yes]\n    else\n        set [flashlight on? v] to [no]\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nshow variable [battery v]\nforever\n    if <(Battery) < [1]> then\n        switch costume to (costume2 v)\n        hide variable [battery v]\n        stop [this script v]\n    end\nend\n\n@End\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\nforever\n    set x to ([cos v] of (((mouse x) * (mouse y)) - ((x position) * (y position))) )\n    set y to ([cos v] of (((x position) * (y position)) - ((mouse x) * (mouse y))) )\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\nwait (3) seconds\nrepeat (30)\n    change [ghost v] effect by (5)\nend\nbroadcast (Start v)\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [10]> then\n        show\n        go to x: (0) y: (0)\n        go to [back v] layer\n        go [backward v] (80) layers\n    end\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nhide\n\n
Hello and welcome to my first game (Adventurer - A mobile platformer) :)\nControls:\n<^> or WASD keys to move\nMobile friendly\nAvoid lava and spikes\nPress f to switch on and off flashlight\nPress s to skip a level\nPress r to restart\nNote: READ STORY FIRST\nStory:\nYou were getting really bored. So suddenly you decided to have an adventure! You went on a strange and lonely land where there were no one. Millions and millions of years ago, someone put some trampolines and spikes there. And the place is so hot that there is also some lava. But fearlessly, you moved on. But then came a tunnel and almost got lost when suddenly you remembered that you had a torch - A flickering one which discharges its battery as soon as being switched on. So can you pass this challenge and become famous??? Let's see...\nGood luck :)\nYou can support me by leaving a ⭐ and a ❤️, and if you enjoyed it thoroughly then leaving a follow!