GPT007/Scratch-platformers-10k huggingface dataset:
City | platformer

Instructions: City | platformer make by @ainii002\n-------------------------- controls ----------------------------\npress up arrow to jump\npress right arrow to move forward\npress left arrow to move backward\n-----------------------------------------------------------------\ndon't touch to spikes\n❌ wall jump.\n-----------------------------------------------------------------\nmusic by @-Xaf-\ninspired by @griffpatch \n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Popsicle3 v] until done\n    play sound [Popsicle4 v] until done\n    play sound [Popsicle5 v] until done\n    play sound [Popsicle6 v] until done\n    play sound [Popsicle2 v] until done\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (. v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-10) y: (-55)\nset [level v] to [1]\nset [times v] to [0.9]\nset [??? v] to [-1]\nforever\n    change [yv v] by (???)\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (> v)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (< v)\n        change [xv v] by (???)\n    end\n    set [xv v] to ((Xv) * (times))\n    change x by (Xv)\n    FIX\n    if <touching (ground v)?> then\n        change y by (-5)\n        change x by ((Xv) * (???))\n        set [xv v] to [0]\n    end\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (???))\n        set [yv v] to [0]\n    end\n    change y by (???)\n    if <<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<<mouse down?> and <(mouse y) > ((y position) + (20))>> and <touching (ground v)?>>> then\n        switch costume to (| v)\n        change [yv v] by (15)\n    end\n    change y by (1)\n    if <(x position) > [410]> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\n    if <touching (spike v)?> then\n        go to x: (-11) y: (-54)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-11) y: (-54)\n\ndefine FIX\nrepeat (5)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\nend\n\n@ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (모양 1 v)\n\n@spike\n\nwhen flag clicked\nswitch costume to (모양 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Text\n\nwhen flag clicked\nswitch costume to (모양 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@.\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait (0.7) seconds\nrepeat (16)\n    change [ghost v] effect by (6.5)\nend\nforever\n    show\n    change [ghost v] effect by (100)\n    go to [front v] layer\nend\n\n
Geometry Dash - A Platformer #Games #Trending

Instructions: Hi! This game is based on a game that i am addicted to called Geometry Dash. I hope you like it becouse I spend a few hours on it. \n\nInstructions:\n- Use arrow keys, WASD or mobile to move. \n- Don't touch spikes or other strange stuff.\n- ❤️ and ⭐️

@Stage\n\nwhen flag clicked\nforever\n    play sound [Stereo Madness v] until done\nend\n\n@Player\n\ndefine Do Physics\nchange [yv v] by (-1)\nif <<key (left arrow v) pressed?> or <<<(mouse x) < (x position)> and <mouse down?>> or <key (a v) pressed?>>> then\n    change [xv v] by (-0.9)\nend\nif <<key (right arrow v) pressed?> or <<<(mouse x) > (x position)> and <mouse down?>> or <key (d v) pressed?>>> then\n    change [xv v] by (0.9)\nend\nset [xv v] to ((xv) * (0.9))\nchange x by (xv)\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (-4)\n    change x by ((xv) * (-1))\n    if <touching (level v)?> then\n        set [yv v] to [12.5]\n    else\n        set [xv v] to [0]\n    end\nend\nchange y by (yv)\nif <touching (level v)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> and <touching (level v)?>> then\n    set [yv v] to [12]\nend\n\ndefine Special\nif <touching (jumps v)?> then\n    set [yv v] to [17]\nend\nif <touching (danger v)?> then\n    start sound [Death v]\n    set [xv v] to [0]\n    set [yv v] to [0]\n    go to x: (-210) y: (-20)\nend\nif <touching color (#47d736)?> then\n    change [xv v] by (2.5)\nend\nif <touching color (#48d639)?> then\n    change [yv v] by (2.5)\nend\n\nwhen flag clicked\nhide\nforever\n    if <<(x position) > [239]> and <not <(Level) = [10]>>> then\n        go to x: (-210) y: (0)\n        broadcast (next v)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0) seconds\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-7)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\ngo to x: (-210) y: (0)\n\nwhen I receive [pos v]\ngo to x: (-210) y: (0)\n\nwhen flag clicked\nswitch costume to (custume1 v)\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nshow\ngo to x: (-210) y: (0)\nforever\n    Do Physics\n    Special\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nset [level v] to [8]\n\n@Jumps\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
Grasslands - A Platformer #games


@Stage\n\nwhen flag clicked\nswitch backdrop to (never gonna give you up v)\n\n@AMV THING\n\nwhen flag clicked\nswitch costume to (shake around head v)\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\nplay sound [never gonna give you up song v] until done\n\n@thumbnail\n\nwhen flag clicked\nchange [☁ you got rickrolled v] by (1)\nforever\n    hide\n    set [last timer v] to (timer)\nend\n\nwhen [timer v] > ((last timer) + (0.2))\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\n@ello\n\nwhen flag clicked\nshow\n\n
Platformer

Instructions: Hello :D\n**CURRENTLY MAKING THE SECOND**\nI made this little game to try it (tell me if you like it or not)\n\n*Instructions*\n\n-Either clicking or holding the "up arrow" or "w" makes you jump. \n-"a", "d", "left arrow",and "right arrow" will make you move\n

@Stage\n\n@Player\n\ndefine handle ground <moving up>\nrepeat until <not <touching color (#000000)?>>\n    if <moving up> then\n        change y by (-5)\n    else\n        change y by (1)\n        set [in air? v] to [0]\n    end\n    set [y val v] to [0]\nend\n\ndefine walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching color (#000000)?>> or <(Ground lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(Ground lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-224) y: (-114)\nset rotation style [left-right v]\nset [y val v] to [0]\nforever\n    change [y val v] by (-2)\n    change y by (Y val)\n    change [in air? v] by (1)\n    handle ground <[0] < (Y val)>\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    if <key (a v) pressed?> then\n        walk [-5]\n    end\n    if <key (d v) pressed?> then\n        walk [5]\n    end\n    if <<key (w v) pressed?> and <(In Air?) < [8]>> then\n        set [y val v] to [14]\n    end\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    if <key (left arrow v) pressed?> then\n        walk [-5]\n    end\n    if <key (right arrow v) pressed?> then\n        walk [5]\n    end\n    if <<key (up arrow v) pressed?> and <(In Air?) < [8]>> then\n        set [y val v] to [14]\n    end\n    if <<[235] < (x position)> or <(x position) = [235]>> then\n        go to x: (-224) y: (-108)\n        next backdrop\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-209) y: (-114)\n    end\n    if <touching color (#9c9c9c)?> then\n        go to x: (-209) y: (-114)\n    end\nend\n\n
Frog Platformer

Instructions: Use WASD or arrow keys to move.\n\n#platformer\n\n\nNew Game: https://scratch.mit.edu/projects/676308978/

@Stage\n\n@hitbox\n\nwhen flag clicked\nshow\nset size to (50) %\nset [spawn x v] to [-212]\nset [spawn y v] to [-30]\ngo to x: (spawn x) y: (spawn y)\nset rotation style [left-right v]\nset [x vel v] to [0]\nset [y vel v] to [0]\nset [ghost v] effect to (100)\nforever\n    broadcast (follow hitbox v)\n    up/down movement [16] [-1]\n    left/right movement [10] [0.6]\n    next level\n    fall off screen\nend\n\ndefine up/down movement (jump height) (fall speed)\nchange y by (y vel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (y vel) ) )\n        if <touching (level v)?> then\n            change y by (((y vel) / ([abs v] of (y vel) )) * (-1))\n        end\n    end\n    if <<not <(y vel) > [0]>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y vel v] to (jump height)\n        start sound [Croak v]\n    else\n        set [y vel v] to [0]\n    end\nelse\n    change [y vel v] by (fall speed)\nend\n\ndefine left/right movement (move speed) (drag)\nchange x by (x vel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (x vel) ) )\n        if <touching (level v)?> then\n            change x by (((x vel) / ([abs v] of (x vel) )) * (-1))\n        end\n    end\n    set [x vel v] to [0]\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    set [x vel v] to (move speed)\nelse\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        set [x vel v] to ((move speed) * (-1))\n    end\nend\nset [x vel v] to ((x vel) * (drag))\n\ndefine next level\nif <(x position) > [242]> then\n    broadcast (next level v)\n    go to x: (spawn x) y: (spawn y)\nend\n\ndefine fall off screen\nif <(y position) < [-170]> then\n    go to x: (spawn x) y: (spawn y)\nend\n\n@player\n\nwhen I receive [follow hitbox v]\ngo to (hitbox v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset rotation style [left-right v]\npoint in direction (90)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to ((costume [number v]) + (1))\n        point in direction (90)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to ((costume [number v]) - (1))\n            point in direction (-90)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    wait (0.04) seconds\nend\n\n@cloud\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (40)\nswitch costume to (pick random (1) to (5))\nshow\ngo to x: (303) y: (pick random (75) to (175))\nglide (4) secs to x: (-303) y: (y position)\ndelete this clone\n\n@level\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\n@thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n
Platformer Engine


@Stage\n\nwhen flag clicked\nswitch backdrop to (merged-full-background v) and wait\nplay sound [medieval v] until done\n\n@Player\n\nwhen flag clicked\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (still2 v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        wait (0.2) seconds\n        switch costume to (still v)\n        wait (0.2) seconds\n        switch costume to (still2 v)\n    end\nend\n\nset rotation style [left-right v]\n\nwait (0.2) seconds\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        wait (0.2) seconds\n        switch costume to (still3 v)\n        wait (0.2) seconds\n        switch costume to (still4 v)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@TB\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n
Generic platformer cube rtx

Instructions: Arrow keys to move the cube. Sorry not mobile. Might make it mobile too in the future.\n\nThis is what the generic platformer cube would look like irl. Before you ask I 3d modeled it myself.\nKinda late to make this bcuz the generic platformer trend is gone but idc. I made this kinda thing before but now I think it looks garbage but you can see my og project if you want I'll provide a link in in notes and credits.\nI started rendering this 3d animation at noon and was done by midnight and I think eventually I'm gonna need a better pc for when I make better projects. Couldn't get the images higher res bcuz when I tried hd upload on turbowarp and turbowarp crashed. 

@Stage\n\nwhen flag clicked\nforever\n    play sound [yt5s v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (generic platformer irl0001 v)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to ((costume [number v]) - (1))\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to ((costume [number v]) + (1))\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (1000)\n\n
プラットフォーマーコンテスト(Platformer contest)

Instructions: 右・左で操作\nPlease translate and read inside.\n내부를 번역하고 읽으십시오.\nSi prega di tradurre e leggere l'interno.\nVertaal en lees de binnenkant.

@Stage\n\n@スプライト1\n\nwhen flag clicked\nforever\n    hide\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n@スプライト2\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nshow\nforever\n    if <([x position v] of [スプライト3 v]) > [230]> then\n        next costume\n        broadcast (メッセージ1 v)\n        if <(costume [number v]) = [1]> then\n            stop [all v]\n        end\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@スプライト3\n\nwhen flag clicked\nset [x v] to [0]\nset [y v] to [0]\nset rotation style [left-right v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change [y v] by (-1)\n    change x by (x)\n    if <touching color (#ff0000)?> then\n        change y by (5)\n    end\n    if <touching color (#ff0000)?> then\n        change y by (-6)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#ff0000)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    if <(y position) < [-66]> then\n        set y to (-66)\n    end\nend\n\nwhen I receive [メッセージ1 v]\ngo to x: (-200) y: (0)\n\nwhen [timer v] > (0)\ngo to x: (-200) y: (-66)\n\n
Pusheen Platformer || #Games

Instructions: Welcome to Pusheen Platformer!\n-- Instructions --\nArrow keys to move\nSpace bar or up arrow to jump!\nAvoid the dangers such as: Lava and Spikes!\nComplete all levels\n<><><><><><><<><><><><><><>\nThe game has 14 levels\n<><>><><><><><><><><><><><>\nPugsheen Version:\nhttps://scratch.mit.edu/projects/700495330\n<><>><><><><><><><><><><><>\n❤️ + ⭐ for more Platformer games!

@Stage\n\nwhen flag clicked\nplay sound [bensound-ukulele v] until done\n\n@Pusheen\n\nwhen flag clicked\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (5) y: (1)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        change [x velocity v] by (-0.8)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [x velocity v] by (0.8)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (round (X Velocity))\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 y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                change x by (round ((X Velocity) * (-1)))\n                            end\n                        end\n                    end\n                end\n                set [x velocity v] to [0]\n            end\n            if <(x position) > [431]> then\n                broadcast (Next level!! v) and wait\n                set [y velocity v] to [0]\n                set [x velocity v] to [0]\n                go to x: (5) y: (1)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        change y by (-1)\n        if <touching (level v)?> then\n            set [y velocity v] to [13]\n        end\n        change y by (1)\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    if <touching (danger v)?> then\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (5) y: (1)\n    end\n    if <(x position) > [431]> then\n        broadcast (Next level!! v) and wait\n        set [y velocity v] to [0]\n        set [x velocity v] to [0]\n        go to x: (5) y: (1)\n    end\nend\n\nwhen I receive [next level!! v]\ngo to x: (5) y: (1)\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level!! v]\nnext costume\n\n@Danger\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level!! v]\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n
Cat - Former ll A Platformer

Instructions: Check out the second! https://scratch.mit.edu/projects/702169872/\n\nWhoever gets the 200th love gets a follow all my accounts\nArrow Keys or WASD or use your finger to move

@Stage\n\n@JoyPad\n\nwhen flag clicked\nset [ghost v] effect to (50)\nforever\n    point in direction (0)\n    hide\n    if <mouse down?> then\n        show\n        point towards (mouse-pointer v)\n        if <([abs v] of (direction) ) < [70]> then\n            broadcast (Jump v)\n        end\n    end\nend\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [level up v]\nnext costume\n\n@Thumbnail\n\nwhen [timer v] > (0.3)\nif <not <([exit v] of [alertsui v]) = [null]>> then\n    switch costume to (costume1 v)\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen flag clicked\ngo to x: (00) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\n@Song\n\nwhen flag clicked\nforever\n    play sound [Nebula v] until done\nend\n\n@Cat\n\nwhen flag clicked\ngo to x: (-222) y: (-111)\nforever\n    if <not <touching (platforms v)?>> then\n        change y by (-4)\n    end\n    Sensing\n    change y by (4)\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <([direction v] of [joypad v]) < [-70]>>> then\n        switch costume to (left v)\n        change x by (-5)\n        Sensing\n        if <touching (platforms v)?> then\n            change x by (5)\n        end\n    end\n    if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <([direction v] of [joypad v]) > [70]>>> then\n        switch costume to (right v)\n        change x by (5)\n        Sensing\n        if <touching (platforms v)?> then\n            change x by (-5)\n        end\n    end\n    change y by (-4)\nend\n\nwhen [up arrow v] key pressed\nif <touching (platforms v)?> then\n    broadcast (Up v)\nend\n\ndefine Sensing\nif <touching color (#549a10)?> then\n    broadcast (Level Up v)\n    go to x: (-222) y: (-111)\nend\nif <touching color (#ff0000)?> then\n    go to x: (-222) y: (-111)\nend\n\nwhen I receive [jump v]\nif <touching (platforms v)?> then\n    broadcast (Up v)\nend\n\nwhen I receive [up v]\nrepeat (14)\n    change y by (10)\n    if <touching (platforms v)?> then\n        change y by (-6)\n        stop [this script v]\n    end\nend\n\nwhen [w v] key pressed\nif <touching (platforms v)?> then\n    broadcast (Up v)\nend\n\nwhen flag clicked\nswitch costume to (right v)\n\n@Love,Favorite,Follow\n\nwhen flag clicked\nhide\nforever\n    set [ghost v] effect to (25)\n    wait (pick random (10) to (20)) seconds\n    play sound [pop v] until done\n    go to x: (50) y: (280)\n    go to [front v] layer\n    go [forward v] (1) layers\n    show\n    repeat (9)\n        change y by (-4)\n    end\n    repeat (5)\n        change y by (2)\n    end\n    wait (3) seconds\n    repeat (15)\n        change y by (2)\n    end\n    hide\nend\n\n