Felix Tales (platformer)

Instructions: Welcome to world!\nArrows, wasd, or mobile to move.\nGet top loved or first page trending for a sequel :D\njoin my pfp trend https://scratch.mit.edu/projects/401765608/ XD

@Stage\n\nwhen flag clicked\nforever\n    play sound [I love you - OMG v] until done\nend\n\nwhen flag clicked\nforever\n    switch backdrop to (backdrop1 v)\nend\n\n@Ground\n\nwhen flag clicked\nset [color v] effect to (0)\nshow\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    go to x: (30) y: (-70)\nend\n\n@Cubey\n\nwhen flag clicked\nforever\n    if <touching (bounce pads v)?> then\n        set [y velocity v] to [13]\n    end\nend\n\nwhen I start as a clone\nset size to (60) %\nrepeat (7)\n    change [ghost v] effect by (14)\n    change size by (-3)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-185) y: (0)\npoint in direction (90)\nset rotation style [left-right v]\nset size to (50) %\nswitch backdrop to (1 v)\nswitch costume to (costume2 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 (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground 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 <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> or <key (space v) pressed?>> 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 (ground 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 (ground 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\nset [ghost v] effect to (0)\nforever\n    if <touching (finish v)?> then\n        if <(Level) < [30]> then\n            change [level v] by (1)\n            broadcast (next lvl v)\n            set x to (-220)\n        end\n    end\nend\n\nwhen flag clicked\nset [trail v] to [Yes]\nset size to (50) %\nforever\n    if <(Trail) = [Yes]> then\n        create clone of (_myself_ v)\n    end\nend\n\nset [trail v] to [Yes]\n\nset [trail v] to [No]\n\nwhen flag clicked\nforever\n    if <<touching (lava v)?> or <touching (spikes v)?>> then\n        go to x: (-185) y: (-80)\n    end\nend\n\nwhen flag clicked\nset [color v] effect to (0)\n\nwhen I receive [next lvl v]\ngo to x: (-185) y: (-80)\nset [ghost v] effect to (0)\nset [y velocity v] to [0]\n\n@Bounce Pads\n\nwhen flag clicked\nset [color v] effect to (0)\ngo to [back v] layer\nswitch costume to (1 v)\nshow\n\nwhen I receive [next lvl v]\nswitch costume to (Level)\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        broadcast (stop v)\n    end\nend\n\n@Text\n\nwhen flag clicked\ngo to [back v] layer\nset [color v] effect to (0)\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [13]> then\n        go to [front v] layer\n    else\n        if <(costume [number v]) = [19]> then\n            go to [front v] layer\n        else\n            go to [back v] layer\n        end\n    end\nend\n\ngo to [back v] layer\n\n@LAVA\n\nwhen flag clicked\nset [color v] effect to (0)\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [next lvl v]\nnext costume\n\nwhen flag clicked\nforever\n    glide (1) secs to x: (0) y: (0)\n    glide (1) secs to x: (0) y: (-5)\nend\n\nset [level v] to [20]\n\nforever\n    wait (0.5) seconds\n    glide (1) secs to x: (0) y: (0)\n    wait (0.5) seconds\n    glide (1) secs to x: (0) y: (-5)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\n@Counter\n\nwhen flag clicked\nhide\nset [digit v] to [0]\nrepeat (20)\n    change [digit v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (200) %\nforever\n    if <(Digit) > (length of (Score:))> then\n        hide\n    else\n        if <not <<(Level) = [12]> or <<(Level) = [3]> or <<(Level) = [4]> or <<<<(Level) = [5]> or <(Level) = [8]>> or <(Level) = [15]>> or <(Level) = [11]>>>>>> then\n            show\n            switch costume to (letter (Digit) of (Score:))\n            go to x: (((Digit) * (25)) - (25)) y: (-140)\n        else\n            show\n            switch costume to (letter (Digit) of (Score:))\n            go to x: (((Digit) * (25)) - (30)) y: (140)\n        end\n    end\nend\n\nwhen flag clicked\nset [color v] effect to (0)\nset [stop counter v] to [0]\nset [score: v] to [0]\nforever\n    if <(STOP COUNTER) = [0]> then\n        wait (1) seconds\n        change [score: v] by (1)\n    end\nend\n\nwhen I receive [stop v]\nset [stop counter v] to [1]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@finish\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        go to x: (196) y: (-67)\n    else\n        if <(Level) = [4]> then\n            go to x: (196) y: (80)\n        else\n            if <(Level) = [5]> then\n                go to x: (-209) y: (152)\n            else\n                if <(Level) = [11]> then\n                    go to x: (196) y: (150)\n                else\n                    if <(Level) = [17]> then\n                        go to x: (196) y: (100)\n                    else\n                        if <(Level) = [18]> then\n                            go to x: (-209) y: (108)\n                        else\n                            if <(Level) = [20]> then\n                                go to x: (196) y: (0)\n                            else\n                                if <(Level) = [21]> then\n                                    go to x: (196) y: (-67)\n                                    hide\n                                else\n                                    go to x: (196) y: (-67)\n                                    show\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@SPIKES\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n