Garden || A platformer

Instructions: ---------- INSTRUCTIONS ----------\n-Arrow keys or wasd to move.\n-Have fun!\n-Don't advertise\n\n---------- CREDITS ----------\n-Art: @TrixJr\n-Code: @TrixJr\n\nPlease if you liked it, love, fave and follow me.\n\nIf this project reach the 100 loves or faves, i will add more levels! :D

@Stage\n\nwhen flag clicked\nforever\n    play sound [Drip Drop v] until done\nend\n\n@Player\n\nwhen flag clicked\nset [y vel v] to [0]\nset [x vel v] to [0]\ngo to x: (-190) y: (0)\ngo to [front v] layer\nclear graphic effects\nforever\n    change [y vel v] by (-1)\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x vel v] by (-2.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x vel v] by (2.5)\n    end\n    set [x vel v] to ((X vel) * (0.8))\n    change x by (X vel)\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        change y by (-8)\n        repeat until <not <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>>>\n            change x by ((X vel) * (-1))\n        end\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [y vel v] to [10]\n            if <(X vel) < [0]> then\n                set [x vel v] to [16]\n            else\n                set [x vel v] to [-16]\n            end\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change y by (Y vel)\n    if <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>> then\n        repeat until <not <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>>>\n            change y by ((Y vel) * (-1))\n        end\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <<touching color (#4ab85e)?> or <<touching color (#66ff82)?> or <touching color (#ffd98e)?>>>> then\n        set [y vel v] to [12]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nshow\nforever\n    if <(x position) = [244]> then\n        broadcast (--next-- v)\n    end\nend\n\nwhen I receive [--next-- v]\ngo to x: (-190) y: (0)\n\nwhen flag clicked\nforever\n    if <<touching color (#ff0000)?> or <touching color (#ff5959)?>> then\n        go to x: (-190) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#e5ff45)?> then\n        set [y vel v] to [12]\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(y position) = [-183]> then\n        go to x: (-190) y: (0)\n    end\nend\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [--next-- v]\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n