Pixo a platformer #mobile friendly
@Stage\n\n@Player\n\nwhen I receive [game on! v]\nbroadcast (Player - Start v)\n\nwhen flag clicked\nbroadcast (Start - Setup v)\nbroadcast (Game on! v)\n\ndefine Game - Reset x and y\nset [player - y v] to [0]\nset [player - x v] to [0]\n\ndefine Game - Move x\nclear graphic effects\nset size to (80) %\nset rotation style [don't rotate v]\nswitch costume to (join [H_] (costume))\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [player - x v] by (1.5)\n    set [dir v] to [90]\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [player - x v] by (-1.5)\n    set [dir v] to [-90]\nend\nset [player - x v] to ((Player - x) * (0.85))\nchange x by (Player - x)\nif <([abs v] of (Player - x) ) < [0.1]> then\n    set [player - x v] to [0]\nend\nswitch costume to (costume)\n\ndefine Game - Collisions and Checking\nif <touching (lava v)?> then\n    Game - Die\nend\nif <touching (spikes v)?> then\n    Game - Die\nend\nif <touching (saw v)?> then\n    Game - Die\nend\nif <(x position) > [225]> then\n    Game - Next Level\nend\n\nwhen I receive [start - setup v]\nGame - Setup\n\ndefine Game - Setup\nset [game - level v] to [1]\nset [costume v] to [1]\nset [player - y v] to [0]\nset [player - x v] to [0]\nset [player - x start v] to [-200]\nset [player - y start v] to [50]\nset [dir v] to [90]\nset rotation style [left-right v]\ngo to x: (Player - x start) y: (Player - y start)\ngo to [front v] layer\nswitch costume to (costume)\nshow\n\nwhen I receive [tick - player v]\nGame - Move x\nGame - Move y\nGame - Collisions and Checking\nPlayer - key s\n\ndefine Game - Move y\nset rotation style [don't rotate v]\nswitch costume to (join [H_] (costume))\nchange [player - y v] by (-1)\nrepeat (4)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\nend\nif <touching (platform v)?> then\n    change y by (-4)\n    change x by ((Player - x) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        if <(Player - x) > [0]> then\n            set [player - x v] to [-10]\n        else\n            set [player - x v] to [10]\n        end\n        set [player - y v] to [12]\n    else\n        set [player - x v] to [0]\n    end\nend\nchange y by (Player - y)\nif <touching (platform v)?> then\n    if <(Player - y) > [0]> then\n        repeat until <not <touching (platform v)?>>\n            change y by (-1)\n            set [player - y v] to [0]\n        end\n    else\n        repeat until <not <touching (platform v)?>>\n            change y by (1)\n            set [player - y v] to [0]\n        end\n    end\nend\nchange y by (-1)\nif <<touching (platform v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n    set [player - y v] to [13.3]\nend\nchange y by (1)\nswitch costume to (costume)\n\ndefine Game - Die\ngo to [front v] layer\nstop [other scripts in sprite v]\nswitch costume to (costume)\nstart sound [Crunch v]\nrepeat (10)\n    go to [front v] layer\n    change size by (10)\n    change [brightness v] effect by (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (Player - x start) y: (Player - y start)\nGame - Reset x and y\nbroadcast (Player - Start v)\n\ndefine Game - Next Level\ngo to x: (Player - x start) y: (Player - y start)\nchange [game - level v] by (1)\nGame - Reset x and y\n\ndefine Player - key s\nset rotation style [don't rotate v]\nif <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < ((y position) + (-35))>>> then\n    set [costume v] to [2]\n    set [player - x v] to ((0.9) * (Player - x))\nelse\n    set [costume v] to [1]\nend\nswitch costume to (join [H_] (costume))\nif <touching (platform v)?> then\n    change y by (1)\n    if <touching (platform v)?> then\n        Game - Die\n    end\nend\nswitch costume to (costume)\nset rotation style [left-right v]\npoint in direction (dir)\n\nwhen I receive [player - start v]\nforever\n    broadcast (Tick - Player v)\n    broadcast (Tick - Others v)\n    broadcast (Tick - Last v)\nend\n\nhide\n\n@Platform\n\nwhen I receive [game on! v]\nGame - Setup\n\nwhen flag clicked\nStart - Setup\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\ndefine Game - Setup\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen I receive [tick - others v]\nGame - Set costume\n\ndefine Game - Set costume\nswitch costume to (Game - Level)\n\n@Lava\n\nwhen I receive [game on! v]\nGame - Setup\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\nwhen I receive [start - setup v]\nStart - Setup\n\ndefine Game - Setup\ngo to [back v] layer\nshow\ngo to x: (0) y: (0)\n\ndefine Game - Set costume\nswitch costume to (Game - Level)\nset y to (([cos v] of ((timer) * (150)) ) * (7))\n\nwhen I receive [tick - others v]\nGame - Set costume\n\n@Spikes\n\nwhen I receive [game on! v]\nGame - Setup\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\ndefine Game - Setup\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\ndefine Game - Set costume\nswitch costume to (Game - Level)\n\nwhen I receive [start - setup v]\nStart - Setup\n\nwhen I receive [tick - others v]\nGame - Set costume\n\n@Klitter for NEON\n\nwhen I start as a clone\ngo to (random position v)\nshow\nswitch costume to (pick random (1) to (3))\nrepeat (20)\n    go to [front v] layer\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\nclear graphic effects\ngo to x: (0) y: (0)\nforever\n    create clone of (_myself_ v)\nend\n\n@Figur1\n\nwhen flag clicked\nhide\n\nshow\n\n@Saw\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\ndefine Game - Setup\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen I receive [start - setup v]\nStart - Setup\n\nwhen I receive [game on! v]\nGame - Setup\n\nwhen I receive [tick - others v]\nGame - Tick\n\ndefine Game - Tick\nset size to (item (Game - Level) of [size v]) %\npoint in direction ((([sin v] of ((timer) * (100)) ) * (150)) + (90))\ngo to [back v] layer\nif <(item (Game - Level) of [x v]) = []> then\n    hide\nelse\n    show\n    set x to (item (Game - Level) of [x v])\n    set y to (item (Game - Level) of [y v])\nend\n\n@Follow!\n\nwhen flag clicked\nhide\nset drag mode [not draggable v]\n\nwhen I receive [spielen! v]\ngo to x: (212) y: (170)\nshow\ngo to [front v] layer\nforever\n    set [ghost v] effect to (100)\n    wait (pick random (1) to (13)) seconds\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    wait (pick random (1) to (13)) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\nend\n\n@Follow!2\n\nwhen flag clicked\nshow\n\n@Trail\n\ndefine Trail\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [player - start v]\nhide\nforever\n    go to (player v)\n    Trail\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < ((y position) + (-35))>>> then\n        set [crouch v] to [1]\n    else\n        set [crouch v] to [0]\n    end\n    if <(Crouch) = [1]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (kostüm1 v)\n    end\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (30) %\nset [brightness v] effect to (0)\nrepeat (10)\n    change [brightness v] effect by (10)\n    change [ghost v] effect by (10)\n    change size by (-3)\nend\ndelete this clone\n\n
Please follow my profile for a game contest‼️\nYou can move with the arrow keys, W, A, S, D or your finger‼️\nI hope you enjoyed this project‼️\n➡️ Have fun and don‘t forget to ❤️ and ⭐️ this project\nThis project is inspired by @NOPUS09\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#games #games #games #games #games #games #games #games #games #games #games #game\n\n#games #games #games #games #games #games #games #games #games #games #games #game\n\n#games #games #games #games #games #games #games #games #games #games #games #game\n\n#games #games #games #games #games #games #games #games #games #games #games #game\n\n\n\n\n#games #games #games #games #games #games #games #games #games #games #games #game #games #games #games #games #games #games #games #games #games #games #games #game #games #games #games #games #games #games #games #games #games #games #games #game #games #games #games #games #games #games #games #games #games #games #games #game #games #games #games #games #games #games #games #games #games #games #games #game #games #games #games #games #games #games #games #games #games #games #games #game