Platformer Engine [1k special] Mobile Friendly #games #art #music #tutorial
@Stage\n\n@player\n\nwhen flag clicked\ngo [forward v] (2) layers\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\ngo to x: (-205) y: (-30)\nset size to (130) %\npoint in direction (90)\nset [player x v] to [0]\nset [player y v] to [0]\nforever\n    if <<<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)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [player x v] by (-1)\n    end\n    set [player x v] to ((Player X) * (0.9))\n    change x by (Player X)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change x by ((Player X) * (-1))\n                        change y by (-4)\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(Player X) > [0]> then\n                                set [player x v] to [-5]\n                            else\n                                set [player x v] to [5]\n                            end\n                            set [player y v] to [12]\n                        else\n                            set [player x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player y v] by (-1)\n    change y by (Player Y)\n    if <touching (level v)?> then\n        change y by ((Player Y) * (-1))\n        set [player y 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 down?> and <(mouse y) > (y position)>>>> then\n        set [player y v] to [12]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        play sound [hurt v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [225]> then\n        go to x: (-205) y: (-30)\n        change [level v] by (1)\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        go to x: (-205) y: (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (water v)?>> then\n        set [player y v] to [5]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (trampoline v)?> then\n        set [player y v] to [17]\n    end\nend\n\n@level\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@thumb\n\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\n@trampoline\n\nwhen flag clicked\nset size to (70) %\nswitch costume to (costume1 v)\nhide\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (4)\n            next costume\n            wait (.02) seconds\n        end\n    else\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [3]> then\n        go to x: (-121) y: (-85)\n        show\n    end\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        play sound [Boing v] until done\n    end\nend\n\n@danger\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@text\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@up\n\nwhen flag clicked\ngo to x: (20) y: (-20)\nset size to (80) %\nset [ghost v] effect to (30)\nforever\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 (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@down\n\nwhen flag clicked\ngo to x: (20) y: (-20)\nset size to (80) %\nset [ghost v] effect to (30)\nforever\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@left\n\nwhen flag clicked\ngo to x: (20) y: (-20)\nset size to (80) %\nset [ghost v] effect to (30)\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@right\n\nwhen flag clicked\ngo to x: (20) y: (-20)\nset size to (80) %\nset [ghost v] effect to (30)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n
Hey everyones!\nI just hit 1k followers so I decided to make a Platformer engine. :D\n\nIt is really easy to use! just --\n•Remix / Backpack\n•Make some changes (add more levels)\n•Give credit and your done!\n\nLeave a ❤️&⭐️ even a follow if you liked it!!\n\nGame Mechanics--\nWall jump ✔\nCrouching ✔\nTrampoline ✔\nWater physics ✔\nFriction ✔\nKey detector ✔\n\nFamous Scratchers--\n@Lucasliu9595 Liked! \n\nShared on [25-1-22]\n#1st page of Trending Tutorial [27-1-22]\n#2nd page of Trending Music [27-1-22]\n#5th page of Trending Art [27-1-22]\n#6th page of Trending Games [28-1-22]\n#1000 views [29-1-22]\n#100 likes [29-1-22]\n#4th page of Trending All [29-1-22]\n#3rd page of Trending Games [29-1-22]\n#2nd page of Trending Art [29-1-22]\n#4th on Trending Tutorial [29-1-22]\n#7th on Trending Music [29-1-22]\n#100 remixes [07-2-22]\n\n