The Seven Lands (Platformer)

Instructions: Just like a platformer, WASD or arrow keys plus mouse \n\nIt's on the explore page!!!!\nEnjoy, like and fav \nYou can advertise if you ❤️ and ⭐ \nFixed the writing bug I think :  )

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (2 v)\n    if <<(lvl) = [6]> or <<(lvl) = [7]> or <(lvl) = [8]>>> then\n        switch backdrop to (3 v)\n    end\nend\n\n@Front Cover \n\nwhen flag clicked\nforever\n    show\n    go to x: (17) y: (7)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    show\n    go to [back v] layer\n    switch costume to (lvl)\n    if <<(lvl) = [3]> and <not <(username) = [-Morni-]>>> then\n        switch costume to (3 v)\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@ \n\nwhen flag clicked\nforever\n    go to [back v] layer\n    show\n    switch costume to (3 v)\n    if <(lvl) = [10]> then\n        switch costume to (1 v)\n    end\n    if <(lvl) = [11]> then\n        switch costume to (2 v)\n    end\n    if <(lvl) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(lvl) = [5]> then\n        switch costume to (3 v)\n    end\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    show\n    switch costume to (lvl)\n    set y to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\n@cloud\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nshow\nset [ghost v] effect to (50)\nset [random v] to (pick random (1) to (2))\nif <(Random) = [1]> then\n    go to x: (-240) y: (pick random (120) to (160))\n    repeat until <[230] < (x position)>\n        change x by (3)\n    end\nelse\n    go to x: (240) y: (pick random (120) to (160))\n    repeat until <(x position) < [-230]>\n        change x by (-3)\n    end\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\n    create clone of (_myself_ v)\n    set [ghost v] effect to (50)\n    wait (pick random (2) to (3)) seconds\nend\n\n@Ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (lvl)\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\nset size to (60) %\ngo to x: (-200) y: (-152)\nforever\n    if <(lvl) = [11]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen this sprite clicked\nchange [lvl v] by (1)\nbroadcast (Blabla v)\n\n@Sprite4\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nforever\n    switch costume to (lvl)\nend\n\n@trampoline\n\nwhen flag clicked\nforever\n    switch costume to (lvl)\nend\n\n@Player\n\nrepeat (5)\n    switch costume to (costume 2 v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nStart\nforever\n    create clone of (_myself_ v)\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\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) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [15]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <(x position) > [230]> then\n        change [lvl v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <<<touching (lava v)?> or <(y position) < [-170]>> or <touching (spikes v)?>> then\n        go to x: (-190) y: (40)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [19]\n    end\nend\n\ndefine Start\nset [lvl v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nset size to (40) %\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\n\nwhen I receive [blabla v]\ngo to x: (-190) y: (40)\n\nwhen flag clicked\nforever\n    switch costume to (normal2 v)\n    if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up2 v)\n    end\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (left2 v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right2 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (up-right v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (up-left v)\n    end\nend\n\nwhen I start as a clone\nhide\n\nwhen flag clicked\nforever\n    play sound [Superboy v] until done\nend\n\nshow\n\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        go to x: (-190) y: (40)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    point towards (player v)\nend\n\nwhen I receive [show v]\nforever\n    if <<(lvl) = [1]> or <<(lvl) = [2]> or <<(lvl) = [3]> or <<(lvl) = [8]> or <<(lvl) = [11]> or <(lvl) = [5]>>>>>> then\n        hide\n    else\n        broadcast (Fire v)\n        wait (0.3) seconds\n    end\nend\n\nwhen I receive [show v]\nforever\n    next costume\n    wait (0.002) seconds\nend\n\nwhen flag clicked\nwait until <(lvl) = [9]>\nshow\ngo to x: (36) y: (28)\nbroadcast (Show v)\n\nwhen flag clicked\nwait until <(lvl) = []>\nshow\ngo to x: (36) y: (28)\nbroadcast (Show v)\n\nwhen flag clicked\nwait until <(lvl) = [10]>\nshow\ngo to x: (36) y: (28)\nbroadcast (Show v)\n\nhide\n\nwhen flag clicked\nforever\n    if <<(lvl) = [1]> or <<(lvl) = [2]> or <<(lvl) = [3]> or <<(lvl) = [8]> or <<(lvl) = [11]> or <(lvl) = [5]>>>>>> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen I receive [fire v]\nshow\npoint towards (player v)\ngo to (sprite1 v)\npoint towards (player v)\nglide (0.1) secs to (player v)\nhide\npoint towards (player v)\nhide\n\nwhen I receive [fire v]\n\nwhen flag clicked\nforever\n    point towards (sprite1 v)\n    wait (0.3) seconds\nend\n\nwhen flag clicked\nforever\n    if <<(lvl) = [1]> or <<(lvl) = [2]> or <<(lvl) = [3]> or <<(lvl) = [8]> or <<(lvl) = [11]> or <(lvl) = [5]>>>>>> then\n        hide\n    end\nend\n\n