cave platformer

Instructions: Its been 3 years..... \nadvertise all you want\nADVERTISERS _ BEWARE\nwhy are people still advertising???\nOK, level 1 is able to be passed now!\nsooo... um... I know it is a little bit too late for scratch month. But I put a mammoth amount of effort into making this, so I hope you enjoyed, almost everything, the level... are from scratch! \n-Arrow keys, touch screen or was to move, get to the portal at the end of each level, \n-Press space to skip a level \n-press m to mute\nif you found any glitches, please tell me.\nLove fav and follow if you liked it!!!\nComment on which level is the hardest!\nhttps://forkphorus.github.io/#398527778 for less lag\n

@Stage\n\n@Ground\n\nwhen flag clicked\nforever\n    change [counter v] by (1)\n    wait (0) seconds\n    if <[1] < (timer)> then\n        reset timer\n        set [fps v] to (Counter)\n        set [counter v] to [0]\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (secret v)\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\nset volume to (50) %\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nforever\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [next level v]\nnext costume\n\nplay sound [SpringInMyStep v] until done\n\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (secret v)\n        stop [this script v]\n    end\n    if <(costume [number v]) = [1]> then\n        broadcast (start v)\n    end\nend\n\n@Slime\n\nwhen I receive [next level v]\ngo to x: (-216) y: (-74)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\ndefine Side Collsion\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 ((Change in x) * (-1))\n                        change y by (-5)\n                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                            if <(Change in x) > [0]> then\n                                set [change in x v] to [-5]\n                            else\n                                set [change in x v] to [5]\n                            end\n                            set [change in y v] to [10]\n                        else\n                            set [change in x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Gravity\nchange [change in y v] by (-1)\nchange y by (change in y)\nif <touching color (#000000)?> then\n    change y by ((-1) * (change in y))\n    set [change in y v] to [0]\nend\nchange y by (-1)\nif <touching color (#000000)?> then\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [change in y v] to [15]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (-216) y: (-74)\nset [change in y v] to [0]\nset [change in x v] to [0]\nforever\n    Side Collsion\n    Gravity\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        switch costume to (roundedright v)\n        change [change in x v] by (1)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (roundedleft v)\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    if <[235] < (x position)> then\n        set size to (65) %\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    play sound [SpringInMyStep v] until done\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#2200ff)?> then\n        wait (0.01) seconds\n        change [change in y v] by (20)\n    end\n    if <touching color (#fff800)?> then\n        wait until <not <touching color (#fff800)?>>\n        say [Easter egg found] for (2) seconds\n    end\nend\n\nset language to (de v)::tts\nset voice to (tenor v)::tts\nspeak [congrats]::tts\nspeak [you have found the easter egg]::tts\nspeak [there are no more easter eggs]::tts\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (roundedright v)\nforever\n    if <(Mute?) = [1]> then\n        set volume to (0) %\n    else\n        set volume to (100) %\n    end\n    if <touching color (#00ff0c)?> then\n        set size to (25) %\n    end\nend\n\nwhen flag clicked\nforever\n    Death Check\n    if <key (m v) pressed?> then\n        change [mute? v] by (1)\n        if <(Mute?) = [2]> then\n            set [mute? v] to [0]\n        end\n        wait until <not <key (m v) pressed?>>\n    end\nend\n\ndefine Death Check\nif <<touching color (#b10000)?> or <touching color (#ff0000)?>> then\n    set size to (65) %\n    switch costume to (roundedright v)\n    go to x: (-216) y: (-74)\n    set [change in x v] to [0]\n    set [change in y v] to [0]\n    play sound [Splat v] until done\nend\n\nwhen [r v] key pressed\nset size to (65) %\ngo to x: (-216) y: (-74)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Turbo Mode Detector\n\nwhen flag clicked\nforever\n    if <[50] < (FPS)> then\n        show\n    else\n        hide\n    end\nend\n\n