Jelly 3 - A Platformer #games

Instructions: Please check out Chromatic Platformer! Its better\nhttps://scratch.mit.edu/projects/1006017578\n - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nAll your jelly friends have been captured and you need to save them! Use your W-A-S-D keys or the mobile controls to traverse and complete the levels!\n - - - - - - \nPart 1: https://scratch.mit.edu/projects/735114130\nPart 2: https://scratch.mit.edu/projects/891169919\nPart 3: https://scratch.mit.edu/projects/891248905/\nPart 4: https://scratch.mit.edu/projects/767402096/\nPart 5: https://scratch.mit.edu/projects/891918441

@Stage\n\nwhen flag clicked\nforever\n    play sound [ Theme v] until done\nend\n\n@Jelly\n\nwhen I start as a clone\nset size to (25) %\nrepeat (7)\n    change [ghost v] effect by (14)\n    change size by (-3)\nend\ndelete this clone\n\nwhen this sprite clicked\nnext costume\nif <(costume [name v]) = [Hitbox]> then\n    switch costume to (orange+blue v)\nend\n\nwhen flag clicked\ngo to x: (-185) y: (-65)\npoint in direction (90)\nset rotation style [left-right v]\nset size to (20) %\nswitch backdrop to (1 v)\nswitch costume to (orange+blue v)\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-0.5)\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (.75)\n        point in direction (90)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x velocity v] by (-.75)\n        point in direction (-90)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (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 x by ((X Velocity) * (-1))\n                            change x by (-.8)\n                            change y by (-5)\n                            change x by (.8)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(X Velocity) > [0]> then\n                                    set [x velocity v] to [-2]\n                                else\n                                    set [x velocity v] to [2]\n                                end\n                                set [y velocity v] to [8]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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    change y by (-1)\n    if <touching (level 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 [y velocity v] to [8]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        change [level v] by (1)\n        broadcast (next lvl v)\n        set x to (-220)\n    end\nend\n\nwhen flag clicked\nset [atrail v] to [Yes]\nset size to (20) %\nforever\n    if <(aTrail) = [Yes]> then\n        create clone of (_myself_ v)\n    end\nend\n\nset [atrail v] to [Yes]\n\nset [atrail v] to [No]\n\nwhen flag clicked\nforever\n    if <touching (bounce pads v)?> then\n        set [y velocity v] to [17]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-185) y: (-100)\n    end\nend\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (1 v)\n\nwhen I receive [next lvl v]\nnext backdrop\n\nwhen I receive [next lvl v]\nswitch costume to (Level)\n\n@Thumbnail!\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\nwait (.1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nclear graphic effects\n\n@Trail toggle\n\nwhen flag clicked\ngo to x: (204) y: (-146)\nswitch costume to (yes v)\nwait (.3) seconds\nshow\n\nwhen this sprite clicked\nif <(aTrail) = [Yes]> then\n    set [atrail v] to [No]\n    switch costume to (no v)\nelse\n    if <(aTrail) = [No]> then\n        set [atrail v] to [Yes]\n        switch costume to (yes v)\n    end\nend\n\n@Scratch Icons\n\n@Bounce Pads\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (1 v)\nhide\nwait (.3) seconds\nshow\n\nwhen I receive [next lvl v]\nswitch costume to (Level)\n\n@Spikes\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (1 v)\nhide\nwait (.3) seconds\nshow\n\nwhen I receive [next lvl v]\nswitch costume to (Level)\n\n