Scratch Platformer!

Instructions: Arow keys to move or wads either one! collect the coins! and beat this platformer! dodge lava spikes and the glitches... those black bad glitches!!\ncredits to @Katana_Gaming- \n(50 ❤️&⭐ = New game!)\n@chocolateicecreamyay is WR holder with 41.8!\n

@Stage\n\nwhen flag clicked\nplay sound [Pokémon Sword & Shield - Slumbering Weald Theme v] until done\nplay sound [Xmas Carol2 v] until done\nforever\n    play sound [endless days v] until done\n    play sound [Chance Thrash - Vague v] until done\n    play sound [eery - Her.mp2 v] until done\nend\n\n@Playerspikes2\n\nwhen flag clicked\nhide variable [deaths v]\nset [ghost v] effect to (0)\nhide\nshow\nstart \n\nwhen I receive [next level v]\nbroadcast (restart v)\nset volume to (100) %\n\nwhen I receive [restart v]\nset [x_velocity v] to [0]\nset [y_velocity v] to [0]\ngo to x: (-213) y: (-59)\n\ndefine Respawn\nhide\nwait (0.10) seconds\nshow\nwait (0.10) seconds\nhide\nwait (0.10) seconds\nshow\nbroadcast (restart v)\nstart sound (pick random (1) to (2))\n\nwhen [timer v] > (0.1)\nhide\nhide variable [deaths v]\n\nwhen flag clicked\nif <(L_eve_l) = [11]> then\n    show variable [deaths v]\nend\n\ndefine start \nset [deaths v] to [0]\nset [l_eve_l v] to [1]\nbroadcast (restart v)\nforever\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        if <<(Love) = [1]> and <(Fave) = [1]>> then\n            switch costume to (cube type 2 v)\n        else\n            switch costume to ( v)\n        end\n        change [x_velocity v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        change [x_velocity v] by (1)\n    end\n    set [x_velocity v] to ((X_VELOCITY) * (0.9))\n    if <<(Love) = [1]> and <(Fave) = [1]>> then\n        switch costume to (cube type 2 v)\n    else\n        switch costume to ( v)\n    end\n    change x by (X_VELOCITY)\n    if <<touching (flying platform v)?> or <touching (platform v)?>> then\n        change y by (1)\n    end\n    if <<touching (platform v)?> or <touching (flying platform v)?>> then\n        change y by (1)\n    end\n    if <<touching (platform v)?> or <touching (flying platform v)?>> then\n        change y by (1)\n    end\n    if <<touching (platform v)?> or <touching (flying platform v)?>> then\n        change y by (1)\n    end\n    if <<touching (platform v)?> or <touching (flying platform 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?> or <<mouse down?> and <(y position) < ((mouse y) - (30))>>>> 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 (platform v)?> or <touching (flying platform v)?>> then\n        change y by ((Y_VELOCITY) - ((Y_VELOCITY) * (2)))\n        set [y_velocity v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < ((mouse y) - (30))>>>> and <<touching (platform v)?> or <touching (flying platform v)?>>> then\n        set [y_velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        change [l_eve_l v] by (1)\n        broadcast (next level v) and wait\n    end\n    if <<<touching (spikes v)?> or <touching (glitch v)?>> or <<touching (lava v)?> or <touching (moving spikes v)?>>> then\n        Respawn\n        change [deaths v] by (1)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nif <<(Love) = [1]> and <(Fave) = [1]>> then\n    switch costume to (cube effect type 2 v)\nelse\n    switch costume to (cube effect type 1 v)\nend\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <<(Love) = [1]> and <(Fave) = [1]>> then\n        switch costume to (cube type 2 v)\n        change [color v] effect by (1)\n    else\n        switch costume to ( v)\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [skip v]\ngo to x: (250) y: (50)\n\n@platform\n\nwhen flag clicked\nset [win? v] to [0]\ngo to x: (6) y: (-65)\nhide\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nif <(L_eve_l) = [11]> then\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        set [win? v] to [1]\n    end\nend\n\nstop [all v]\n\nbroadcast (next level v)\n\nset [l_eve_l v] to [11]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        if <(timer ⏱️) < (☁ world record)> then\n            set [☁ world record v] to (timer ⏱️)\n        end\n    end\nend\n\n@spikes\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (42) y: (28)\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@lava\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (42) y: (28)\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    glide (1) secs to x: (42) y: (18)\n    glide (1) secs to x: (42) y: (28)\nend\n\n@timer ⏱️ \n\nwhen flag clicked\nhide variable [☁ world record v]\nset [timer ⏱️ v] to [0]\nshow\nforever\n    go to [front v] layer\n    if <(win?) = [0]> then\n        change [timer ⏱️ v] by (0.1)\n        wait (0.05) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n    else\n        set [ghost v] effect to (70)\n    end\nend\n\nwhen flag clicked\nreset timer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        next costume\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n    end\nend\n\nwhen flag clicked\nswitch costume to (off v)\nreset timer\nshow\nforever\n    if <(costume [number v]) = [1]> then\n        show variable [☁ world record v]\n        show variable [timer ⏱️ v]\n    else\n        if <not <(L_eve_l) = [11]>> then\n            hide variable [☁ world record v]\n            hide variable [timer ⏱️ v]\n        end\n    end\nend\n\nhide\n\nshow\n\nhide\n\nwhen flag clicked\nswitch costume to (off v)\nreset timer\nshow\nforever\n    if <(L_eve_l) = [11]> then\n        show variable [timer ⏱️ v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(☁ world record) > (timer ⏱️)> and <not <(timer ⏱️) = [0]>>> and <(L_eve_l) = [11]>> then\n        set [☁ world record v] to (timer ⏱️)\n    end\nend\n\n@Love\n\nwhen flag clicked\nhide variable [fave v]\nhide variable [love v]\nset [fave v] to [0]\nset [love v] to [0]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [love v] to [1]\n    end\nend\n\n@Fav\n\nwhen flag clicked\nset [fave v] to [0]\nset [love v] to [0]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [fave v] to [1]\n    end\nend\n\n@Like&fav pls\n\nwhen flag clicked\nforever\n    wait (9) seconds\n    go to [front v] layer\n    show\n    go to x: (33) y: (153)\n    set y to (202)\n    repeat (10)\n        change y by (-3)\n    end\n    repeat (10)\n        change y by (-1.5)\n    end\n    repeat (10)\n        change y by (-0.5)\n    end\n    wait (2) seconds\n    if <<(Love) = [1]> and <(Fave) = [1]>> then\n    broadcast (back v)\n    repeat (10)\n        change y by (3)\n    end\n    repeat (10)\n        change y by (1.5)\n    end\n    repeat (10)\n        change y by (0.5)\n    end\nend\n\nhide\n\nwhen flag clicked\nplay sound [High Whoosh v] until done\n\nwhen I receive [back v]\nplay sound [High Whoosh v] until done\n\n@glitch\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [1]> then\n        show\n        go to x: (70) y: (-100)\n        repeat (25)\n            change x by (5)\n        end\n        repeat (25)\n            change x by (-5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [2]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [6]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [7]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [8]> then\n        show\n        go to x: (92) y: (-37)\n        repeat (20)\n            change x by (3)\n        end\n        wait (0.5) seconds\n        repeat (20)\n            change x by (-3)\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [9]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [10]> then\n        hide\n    end\nend\n\n@flying platform\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [1]> then\n        hide\n    end\nend\n\ngo to x: (70) y: (-100)\nrepeat (25)\n    change x by (5)\nend\nrepeat (25)\n    change x by (-5)\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [2]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nset size to (90) %\nforever\n    if <(L_eve_l) = [6]> then\n        show\n        go to x: (91) y: (-28)\n        repeat (30)\n            change x by (3)\n        end\n        repeat (30)\n            change x by (-3)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [5]> then\n        hide\n    end\nend\n\nbroadcast (restart v)\nset [l_eve_l v] to [7]\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [7]> then\n        show\n        go to x: (85) y: (53)\n        repeat (30)\n            change x by (3)\n        end\n        repeat (30)\n            change x by (-3)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [9]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [11]> then\n        hide\n    end\nend\n\n@coins\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (2) y: (121)\nset [candy v] to [0]\nset [special/sweet v] to [0]\ngo to [front v] layer\nforever\n    if <touching (playerspikes2 v)?> then\n        hide\n        set size to (50) %\n        glide (0.1) secs to (playerspikes2 v)\n        set [special/sweet v] to [100]\n        change [candy v] by (1)\n        broadcast (take v)\n        start sound [Finger Snap v]\n    end\nend\n\nwhen flag clicked\nforever\n    point in direction (90)\n    repeat (10)\n        turn right (1) degrees\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (special/sweet)\nend\n\nwhen I receive [next level v]\nset [special/sweet v] to [0]\nshow\nset size to (100) %\nif <(L_eve_l) = [2]> then\n    set [special/sweet v] to [0]\n    go to x: (-112) y: (146)\nend\nif <(L_eve_l) = [3]> then\n    set [special/sweet v] to [0]\n    go to x: (-84) y: (120)\nend\nif <(L_eve_l) = [4]> then\n    set [special/sweet v] to [0]\n    go to x: (10) y: (130)\nend\nif <(L_eve_l) = [5]> then\n    set [special/sweet v] to [0]\n    go to x: (-150) y: (100)\nend\nif <(L_eve_l) = [6]> then\n    go to x: (5) y: (115)\n    set [special/sweet v] to [0]\nend\nif <(L_eve_l) = [7]> then\n    go to x: (153) y: (-55)\n    set [special/sweet v] to [0]\nend\nif <(L_eve_l) = [8]> then\n    go to x: (200) y: (45)\n    set [special/sweet v] to [0]\nend\nif <(L_eve_l) = [9]> then\n    go to x: (190) y: (-95)\n    set [special/sweet v] to [0]\nend\nif <(L_eve_l) = [10]> then\n    go to x: (20) y: (58)\n    set [special/sweet v] to [0]\nend\nif <(L_eve_l) = [11]> then\n    hide\n    go to x: (400) y: (200)\n    set [special/sweet v] to [0]\nend\n\nset [l_eve_l v] to [7]\n\n@coin count\n\nwhen flag clicked\ngo to x: (305) y: (-145)\nhide\n\nwhen I receive [take v]\nshow\nswitch costume to (candy)\nset [ghost v] effect to (20)\ngo to x: (305) y: (-145)\nrepeat (10)\n    change x by (-10)\nend\nrepeat (10)\n    change x by (-5)\nend\nrepeat (5)\n    change x by (-1)\nend\nwait (0.3) seconds\nrepeat (5)\n    change x by (2.5)\nend\nrepeat (10)\n    change x by (5)\nend\nrepeat (10)\n    change x by (10)\nend\nhide\n\nwhen I receive [take v]\nif <(candy) = [10]> then\n    play sound [Coin v] until done\nend\n\nbroadcast (take v)\nset [candy v] to [10]\n\n@moving spikes\n\nwhen flag clicked\nforever\n    forever\n        repeat (5)\n            change y by (3)\n            wait (0.05) seconds\n        end\n        repeat (5)\n            change y by (-3)\n            wait (0.05) seconds\n        end\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (42) y: (28)\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Sprite1\n\nwhen this sprite clicked\nbroadcast (Skip v)\nchange [timer ⏱️ v] by (23)\n\nwhen flag clicked\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    end\nend\n\nwhen flag clicked\nshow\n\n@lagggg\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [1]> then\n        go to (glitch v)\n        hide\n        wait (0.1) seconds\n        next costume\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [2]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [6]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [7]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [8]> then\n        go to (glitch v)\n        hide\n        wait (0.1) seconds\n        next costume\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [9]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(L_eve_l) = [10]> then\n        hide\n    end\nend\n\nforever\n\n@lightning\n\nwhen flag clicked\nset size to (100) %\nforever\n    set size to (100) %\n    go to (coins v)\n    change y by (0)\n    repeat (10)\n        turn right (5) degrees\n        change size by (-2)\n    end\n    repeat (10)\n        turn right (5) degrees\n        change size by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (special/sweet)\nend\n\n@thumbnaill\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (15)\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0.04)\ngo to x: (0) y: (15)\nswitch costume to (size v)\nset size to (500) %\nswitch costume to ( v)\nset [mosaic v] effect to (0)\nset [brightness v] effect to (0)\nset [pixelate v] effect to (80)\nset [brightness v] effect to (80)\nrepeat (10)\n    switch costume to (size v)\n    change size by (() - ((size) / (10)))\n    switch costume to ( v)\n    change [brightness v] effect by (-8)\n    change [pixelate v] effect by (-8)\nend\nrepeat (10)\n    switch costume to (size v)\n    change size by (() - ((size) / (10)))\n    switch costume to ( v)\nend\n\ngo to [front v] layer\n\n