KENNEY Platformer V0.1.8

Instructions:                     ∞∞ ⌦Infinity Platformer⌫ ∞∞\n    ∞∞ The Platforming Game that Lasts Forever! ∞∞\n\n▶ Platform Forever Through Over 175 Different Levels!\n▶ More Levels Coming!\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\nControls:\n\nUse the Mobile Joystick to activate Mobile Mode! Use the Keyboard to activate Computer Mode!\n\n▶ Use W,A,D or the Arrow Keys to Move!\n▶ Hold M to Open the Stats Menu!\n▶ Press R to Reset the Stage!\n▶ Press T to Skip a Stage!\n▶ Press Y to Change your Skin!\n\nYOU MUST FOLLOW ME TO ADVERTISE!!!\nPlease don't add this game to any studio without permission from me!\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\nCredits:\n\nSprites, Code: Tech_Voyager (Me!)\nMobile Controls - @griffpatch\nSounds: Pixabay.com\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n4/19/24 - No. 104 ON #ALL!\n4/20/24 - No. 86 ON #ALL!\n4/21/24 - No. 82 ON #ALL!\n4/29/24 - Saw it in "What the Community is Remixing"\n4/30/24 - #36 in #GAMES!\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n#all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer #all #trending #platformer 

@Stage\n\n@player variable\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (-200) y: (-100)\npoint in direction (90)\nset size to (80) %\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\n        change [xv v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-10]>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platformer v)?> then\n        change y by (1)\n        if <touching (platformer v)?> then\n            change y by (1)\n            if <touching (platformer v)?> then\n                change y by (1)\n                if <touching (platformer v)?> then\n                    change y by (1)\n                    if <touching (platformer v)?> then\n                        change y by (1)\n                        if <touching (platformer v)?> then\n                            change x by ((Xv) * (-1))\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [12]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (platformer v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platformer v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [12]\n        end\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [20]\n        broadcast (Trampoline v)\n    end\n    change y by (1)\n    if <key (r v) pressed?> then\n        reset\n    end\n    if <<<(y position) < [-177]> or <touching (meany variable v)?>> or <touching (saw variable v)?>> then\n        start sound [Death v]\n        reset\n    end\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        broadcast (Next level! v)\n        reset\n    end\nend\n\ndefine reset\ngo to x: (-260) y: (-85)\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    play sound [bensound-dreams v] until done\nend\n\nwhen flag clicked\nforever\n    wait (0.05) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nwait (0.5) seconds\ndelete this clone\n\nwhen I start as a clone\nrepeat (50)\n    wait (0) seconds\n    change [ghost v] effect by (15)\n    change size by (-2)\nend\n\nwhen flag clicked\nforever\n    turn right ((Xv) * (1.3)) degrees\nend\n\n@Moon variable\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nwait (2) seconds\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nwait (2) seconds\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (50)\nforever\n    repeat (100)\n        switch costume to (costume3 v)\n        change size by (1)\n        switch costume to (costume2 v)\n    end\n    repeat (100)\n        switch costume to (costume3 v)\n        change size by (-1)\n        switch costume to (costume2 v)\n    end\nend\n\n@Platformer\n\nwhen I receive [next level! v]\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (4) y: (4)\nswitch costume to (costume1 v)\n\n@Meany Variable\n\nwhen flag clicked\nswitch costume to (spikey variable v)\n\nwhen I receive [next level! v]\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\n\n@Stars Variable\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\nwhen I start as a clone\nrepeat (25)\n    change [ghost v] effect by (-5)\nend\nrepeat (25)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    go to x: (pick random (300) to (-300)) y: (pick random (-100) to (200))\n    create clone of (_myself_ v)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [9]> then\n        show\n        go to x: (10) y: (-66)\n    else\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen flag clicked\nset [level v] to [0]\n\ngo to x: (10) y: (-65)\n\nwhen I receive [trampoline v]\nif <(costume [number v]) = [1]> then\n    repeat (3)\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        switch costume to (costume3 v)\n        wait (0.001) seconds\n        switch costume to (costume2 v)\n        wait (0.001) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [11]> then\n        show\n        go to x: (10) y: (-66)\n    else\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) < [9]> then\n        hide\n    end\n    if <(level) = [10]> then\n        hide\n    end\n    if <(level) > [11]> then\n        hide\n    end\nend\n\n@Saw Variable\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [back v] layer\nhide\nforever\n    if <(level) = [12]> then\n        show\n        go to x: (2) y: (-133)\n        \n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen flag clicked\npoint in direction (90)\nforever\n    turn right (13) degrees\nend\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I receive [start v]\ngo to [back v] layer\nforever\n    if <(level) = [12]> then\n        glide (0.5) secs to x: (50) y: (-133)\n        glide (0.5) secs to x: (-50) y: (-133)\n    end\n    if <(level) = [13]> then\n        hide\n    end\nend\n\n@Timer\n\nwhen flag clicked\nset [time v] to [0]\nrepeat until <(Time) = [1000000]>\n    change [time v] by (0.1)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nhide variable [time v]\nforever\n    if <key (1 v) pressed?> then\n        show variable [time v]\n    end\n    if <key (2 v) pressed?> then\n        hide variable [time v]\n    end\nend\n\n