GPT007/Scratch-platformers-10k huggingface dataset:
Decorate -a platformer 


@Stage\n\nwhen flag clicked\nchange [☁ veiwers v] by (1)\nhide variable [☁ veiwers v]\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (level)\nend\n\n@welcome\n\n@Marshmallo\n\nwhen flag clicked\nchange [veiwers v] by (1)\nhide variable [veiwers v]\n\nwhen flag clicked\nshow\n\ndefine Platformer engine\nchange [y v] by (-0.5)\nif <key (left arrow v) pressed?> then\n    change [x v] by (-0.8)\nend\nif <key (right arrow v) pressed?> then\n    change [x v] by (0.8)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <touching (platforms v)?> then\n    change y by (1)\n    if <touching (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                    if <touching (platforms v)?> 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 [10]\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                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <touching (platforms v)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching (platforms v)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <(x position) > [200]> then\n    change [level v] by (1)\n    go to x: (X spawn) y: (Y spawn)\nend\nif <touching (trampoline v)?> then\n    set [y v] to [15]\nend\nif <[-195] > (y position)> then\n    go to x: (X spawn) y: (Y spawn)\nend\nif <touching (obstacles v)?> then\n    go to x: (X spawn) y: (Y spawn)\nend\n\nwhen flag clicked\npoint in direction (90)\nset [x spawn v] to [-164]\nset [y spawn v] to [-82]\ngo to x: (X spawn) y: (Y spawn)\nshow\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer engine\nend\n\nwhen flag clicked\n\n    play sound [5 Minute Lo-Fi Hiphop Beats Study Timer \(2\) v] until done\nend\n\n@platforms\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\n@obstacles\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nshow\n\n@Sprite1\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
RED  platformer

Instructions: 【操作方法】\n・矢印キーで操作\n\nscratchwikiを参考にさせていただきました!!\n初作品＆初platformer!!\n1日かけて頑張って作った!!\n初めてだからようわからないけどこういう感じに描くのですか？\n\nちょっと前からscratchにはログインしてなかったけどその時に海外風のプラットフォーマーを見ました。

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (blue sky 2  v)\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (-172) y: (-87)\nset [速度 v] to [0]\nforever\n    change [ジャンプ v] by (-1)\n    if <key (left arrow v) pressed?> then\n        set rotation style [left-right v]\n        point in direction (-90)\n        change [速度 v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        set rotation style [left-right v]\n        point in direction (90)\n        change [速度 v] by (1)\n    end\n    change x by (速度)\n    set [速度 v] to ((速度) * (0.9))\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by (1)\n    end\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by (1)\n    end\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by (1)\n    end\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by (1)\n    end\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by (-4)\n        change x by ((速度) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [ジャンプ v] to [15]\n            if <([abs v] of (速度) ) = (速度)> then\n                set [速度 v] to [-10]\n            else\n                set [速度 v] to [10]\n            end\n        else\n            set [速度 v] to [0]\n        end\n    end\n    change y by (ジャンプ)\n    if <<touching color (#00ff1f)?> or <touching color (#c00000)?>> then\n        change y by ((0) - (ジャンプ))\n        set [ジャンプ v] to [0]\n    end\n    change y by (-1)\n    if <not <touching color (#000000)?>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<touching color (#00ff1f)?> or <touching color (#c00000)?>>> then\n            set [ジャンプ v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        go to x: (-240) y: (-87)\n        broadcast (次の背景 v)\n    end\n    if <touching color (#ff0000)?> then\n        start sound [Crunch v]\n        go to x: (-172) y: (-87)\n        set [ジャンプ v] to [0]\n    end\n    if <touching color (#fff500)?> then\n        set [ジャンプ v] to [20]\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [次の背景 v]\nnext costume\n\n@スプライト2\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (3) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nchange [ghost v] effect by (pick random (20) to (60))\nshow\ngo to x: (-191) y: (pick random (153) to (60))\nrepeat (400)\n    move (3) steps\n    if on edge, bounce\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@サムネイル\n\nwhen flag clicked\nhide\n\n
Black Platformer

Instructions: 【操作方法】\n・矢印キーで操作\n・赤に触れたらOUT\n\nscratchwikiを参考にさせていただきました!\nplatformer　2作目!!

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (blue sky 2  v)\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (-172) y: (-87)\nset [速度 v] to [0]\nforever\n    change [ジャンプ v] by (-1)\n    if <key (left arrow v) pressed?> then\n        set rotation style [left-right v]\n        point in direction (-90)\n        change [速度 v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        set rotation style [left-right v]\n        point in direction (90)\n        change [速度 v] by (1)\n    end\n    change x by (速度)\n    set [速度 v] to ((速度) * (0.9))\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (-4)\n        change x by ((速度) * (-1.1))\n        if <key (up arrow v) pressed?> then\n            start sound [Jump v]\n            set [ジャンプ v] to [13]\n            if <([abs v] of (速度) ) = (速度)> then\n                set [速度 v] to [-10]\n            else\n                set [速度 v] to [10]\n            end\n        else\n            set [速度 v] to [0]\n        end\n    end\n    change y by (ジャンプ)\n    if <touching color (#000000)?> then\n        change y by ((0) - (ジャンプ))\n        set [ジャンプ v] to [0]\n    end\n    change y by (-1)\n    if <not <touching color (#406c15)?>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching color (#000000)?>> then\n            start sound [Jump v]\n            set [ジャンプ v] to [13]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        go to x: (-240) y: (-87)\n        broadcast (次の背景 v)\n    end\n    if <<<touching color (#ff0000)?> or <touching color (#ff5c00)?>> or <(y position) = [-182]>> then\n        go to x: (-172) y: (-87)\n        set [ジャンプ v] to [0]\n        start sound [Crunch v]\n    end\n    \n        set [ジャンプ v] to [20]\n    end\n    if <touching color (#00e0ff)?> then\n        change y by (-2)\n        set [ジャンプ v] to [0]\n        if <key (up arrow v) pressed?> then\n            change y by (5)\n            set [ジャンプ v] to [0]\n        end\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen I receive [次の背景 v]\nnext costume\n\n@サムネー\n\nwhen flag clicked\nhide\n\n
PIXELS A PLATFORMER GAME

Instructions: THIS IS A NICE PLATFORMER MADE BY @atitap\nand @JOBRA-KING-studio. hope you enjoy! pls love fave and remix and follow!!! ;)\n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [message1 v]\nnext backdrop\n\n@Sprite1\n\ndefine Platform (jump height) (friction) (running speed)\nset rotation style [left-right v]\nswitch costume to (costume1 v)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [x velocity v] by (running speed)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    point in direction (-90)\n    change [x velocity v] by ((running speed) * (-1))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nif <touching color (#000000)?> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching color (#000000)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <touching color (#000000)?> then\n                change x by (([abs v] of (X Velocity) ) / ((X Velocity) * (-1)))\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            set [y velocity v] to [10]\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-15]\n            else\n                set [x velocity v] to [15]\n            end\n        else\n            set [x velocity v] to [0]\n        end\n    end\nend\nchange y by (Y Velocity)\nif <touching color (#000000)?> then\n    repeat ([ceiling v] of ([abs v] of (Y Velocity) ) )\n        if <touching color (#000000)?> then\n            change y by (([abs v] of (Y Velocity) ) / ((Y Velocity) * (-1)))\n        end\n    end\n    if <<(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n        switch costume to (idle v)\n    end\nelse\n    change [y velocity v] by (-1)\nend\n\nwhen flag clicked\ngo to x: (0) y: (150)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform [12] [0.7] [4]\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (-176) y: (-26)\nend\n\nwhen flag clicked\nforever\n    wait until <touching (_edge_ v)?>\n    broadcast (message1 v)\n    go to x: (-176) y: (-26)\nend\n\nwhen flag clicked\nforever\n    wait until <touching color (#a70000)?>\n    go to x: (-176) y: (-26)\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    play sound [Fire by bubblebee3 v] until done\nend\n\n
Winter - A platformer

Instructions: Use the arrow keys to move.\nPls like fav and follow\nThx!!

@Stage\n\n@Player\n\ndefine Tick\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nchange x by (xv)\nset [xv v] to ((xv) * (0.9))\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change x by ((xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching color (#000000)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <key (up arrow v) pressed?> then\n    if <touching color (#000000)?> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [tick v]\nTick\n\nwhen [right arrow v] key pressed\nswitch costume to (right v)\n\nwhen [left arrow v] key pressed\nswitch costume to (left v)\n\nwhen flag clicked\nforever\n    if <(x position) > [265]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (right v)\ngo to x: (-162) y: (1)\n\nwhen I receive [start level v]\ngo to x: (-162) y: (1)\n\nwhen flag clicked\nforever\n    if <<touching color (#0096cd)?> or <touching color (#ff0000)?>> then\n        broadcast (Start Level v)\n        start sound [ROBLOX Death Sound.mp3 v]\n    end\nend\n\n@Level\n\nwhen flag clicked\nshow\nswitch costume to (lvl.1 v)\n\nwhen I receive [next level v]\nnext costume\nbroadcast (Start Level v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
Autumn - A platformer

Instructions: We all know: ⬅️⬆️➡️

@Stage\n\n@Player\n\ndefine Tick\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nchange x by (xv)\nset [xv v] to ((xv) * (0.9))\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change x by ((xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching color (#000000)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <key (up arrow v) pressed?> then\n    if <touching color (#000000)?> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [tick v]\nTick\n\nwhen [right arrow v] key pressed\nswitch costume to (player\(costume1\) v)\n\nwhen [left arrow v] key pressed\nswitch costume to (player\(costume2\) v)\n\nwhen flag clicked\nforever\n    if <(x position) > [265]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (player\(costume1\) v)\ngo to x: (-162) y: (1)\n\nwhen I receive [start level v]\ngo to x: (-200) y: (1)\n\nwhen flag clicked\nforever\n    if <touching color (#656565)?> then\n        broadcast (Start Level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (teleport v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        say [Thanks for playing!!] for (3) seconds\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nif <(Level) = [1]> then\n    say [Hello!] for (2) seconds\n    say [I love autumn because of the beautiful red evening skies] for (4) seconds\nend\n\n@Level\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\nbroadcast (Start Level v)\n\nwhen flag clicked\nswitch costume to (lvl.1 v)\n\nshow\n\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nshow\n\n@teleport\n\n
Yellow a platformer || #Yellow #platformer

Instructions: Hey guys today I share my project Yellow a platformer,\nFor me it a good project.\n7 levels all possible\nMobile or arrow a key 

@Stage\n\n@Player\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (-189) y: (-50)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-1)\n    change [xv v] by (<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> - <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>)\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching (level v)?> then\n        if <not <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n            change x by ((0) - (xv))\n        else\n            set [yv v] to [12.5]\n            if <[0] < (xv)> then\n                set [xv v] to [-7.5]\n            else\n                set [xv v] to [7.5]\n            end\n            change x by (xv)\n        end\n    end\n    change y by (yv)\n    if <touching (level v)?> then\n        change y by ((0) - (yv))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [14]\n        else\n            set [yv v] to [0]\n        end\n    end\n    if <(x position) > [230]> then\n        broadcast (D v)\n    end\n    if <<touching (sprite1 v)?> or <touching color (#ff0000)?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set [ghost v] effect to (0)\n        go to x: (-189) y: (-50)\n    end\nend\n\nwhen I receive [j v]\ngo to x: (-189) y: (-97)\n\ngo to x: (-189) y: (-97)\n\nwhen flag clicked\nforever\n    play sound [Warriyo - Mortals \(feat. Laura Brehm\) \[NCS Release\] v] until done\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (level 1 v)\ngo to x: (36) y: (28)\n\nwhen I receive [d v]\nnext costume\nset [yv v] to [0]\nset [xv v] to [0]\nbroadcast (J v)\n\n@Thumbnail\n\nwhen [timer v] > (0.01)\nshow\nset [ghost v] effect to (100)\ngo to x: (36) y: (2800000)\nrepeat until <(round (y position)) = [28]>\n    change y by (((28) - (y position)) / (4))\nend\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\nforever\n    reset timer\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.01)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [d v]\nnext costume\n\n@Sprite4\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to x: (pick random (-230) to (230)) y: (165)\nset size to (pick random (50) to (300)) %\nshow\nset [ghost v] effect to (pick random (40) to (50))\nrepeat until <touching (_edge_ v)?>\n    change y by (-5)\n    change [ghost v] effect by (.5)\nend\ndelete this clone\n\n
Scrolling Platformer Creator assets

Instructions: Note: This is a GAME TILESET, so plz click see inside ^_^ (this is not a game...)\n\nThey are all useful tiles for creating games :D\nhope you like it!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Treenan v] until done\nend\n\n@scrolling  platformer creator assets\n\nwhen flag clicked\nshow\nforever\n    change size by (((100) - (size)) / (10))\n    go to x: ((mouse x) * (0.02)) y: ((mouse y) * (0.02))\nend\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        set size to (130) %\n        wait until <not <mouse down?>>\n    end\nend\n\ngo to x: (0) y: (0)\nset size to (100) %\n\n
Platformer starter

Instructions: ..

@Stage\n\n@platforming\n\nwhen flag clicked\nswitch costume to (costume2 v)\nshow\nswitch backdrop to (backdrop1 v)\ngo to x: (200) y: (500)\nset [xv v] to [0]\nset [falling? v] to [0]\nset [yv v] to [0]\nset size to (100) %\nset rotation style [left-right v]\nforever\n    Physics\nend\n\ndefine Touch Ground <up?>\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        set [falling? v] to [0]\n        change y by (1)\n    end\n    set [yv v] to [0]\nend\n\ndefine Physics\nchange [yv v] by (-1)\nchange y by (Yv)\nchange [falling? v] by (1)\nTouch Ground <(Yv) > [0]>\nif <<key (up arrow v) pressed?> and <(falling?) < [3]>> then\n    set [yv v] to [13]\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    change [xv v] by (-1.7)\nend\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    change [xv v] by (1.7)\nend\nset [xv v] to ((Xv) * (0.85))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    I hate lag\nend\nif <touching (trampoline v)?> then\n    set [yv v] to [20]\nend\nif <touching (spike v)?> then\n    go to x: (200) y: (500)\nend\nset size to (80) %\n\ndefine I hate lag\nchange x by ((Xv) * (-1))\nchange y by ((slope) * (-1))\n\nwhen [space v] key pressed\n\nwhen flag clicked\nshow\nforever\n    if <touching (water v)?> then\n        change [yv v] by (0.7)\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        change [yv v] by (0.5)\n    end\nend\n\n@ground\n\n@spike\n\n@Water\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    next costume\n    wait (0.2) seconds\nend\n\n@trampoline\n\nwhen flag clicked\ngo to [back v] layer\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nshow\n\n
Platformer Assets Pack 2

Instructions: Please give credit when using.\n\nGame contest: https://scratch.mit.edu/projects/648649878/\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset [costume v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (Costume)\nshow\ngo to x: (240) y: (200)\nrepeat until <(x position) < [1]>\n    change x by ((x position) / (-4))\n    change y by ((y position) / (-4))\nend\nwait until <<key (space v) pressed?> or <<mouse down?> and <touching (mouse-pointer v)?>>>\nchange [costume v] by (1)\ncreate clone of (_myself_ v)\nset x to (-1)\nset y to (-1)\nrepeat until <(x position) < [-200]>\n    change x by ((x position) / (4))\n    change y by ((y position) / (4))\nend\ndelete this clone\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n