World Landmarks || A Platformer

Instructions: Control the cat with arrow keys/wasd/tapping the screen\nInteract with the different places \nYou can jump on some things\nOthers will send you back to the start\nGet to the other side\nIt repeats itself infinitely\nAll levels are possible

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    play sound [A random piece of music that exists v] until done\nend\n\n@Character\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to x: (-200) y: (200)\nset [speed y v] to [0]\nset [falling v] to [10]\nforever\n    switch costume to (hitbox v)\n    change [speed y v] by (-1)\n    change y by (speed y)\n    touch ground <(speed y) > [0]>\n    set [speed x v] to ((speed x) * (0.7))\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > [50]>>> then\n        change [speed x v] by (1.5)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <[-50] > (mouse x)>>> then\n        change [speed x v] by (-1.5)\n    end\n    if <(wall jump) > [0]> then\n        change [wall jump v] by (-1)\n    else\n        if <(speed x) < [-0.5]> then\n            Walk [-90] (speed x)\n        end\n        if <(speed x) > [0.5]> then\n            Walk [90] (speed x)\n        end\n    end\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <[0] < (mouse y)>>> then\n        if <<(falling) < [3]> and <(falling) < [3]>> then\n            set [speed y v] to [14]\n            set [falling v] to [6]\n            set [jump key v] to [1]\n        end\n    else\n        set [jump key v] to [0]\n    end\n    if <<(y position) < [-180]> or <touching (badness v)?>> then\n        go to x: (-200) y: (200)\n        set [speed x v] to [0]\n        set [speed y v] to [0]\n    end\n    if <[240] < (x position)> then\n        broadcast (Next level v)\n        set [speed x v] to [0]\n        set [speed y v] to [0]\n    end\n    switch costume to (cat v)\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (platforms v)?>>>\n    change y by (1)\n    change [slope v] by (1)\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <([abs v] of (speed) ) > [3]>>> then\n        if <(wall jump) = [0]> then\n            set [speed y v] to [14]\n            set [falling v] to [6]\n            set [speed x v] to ((-1.2) * (speed))\n            set [wall jump v] to [15]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\ndefine touch ground <up>\nchange [falling v] by (1)\nrepeat until <not <touching (platforms v)?>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (200)\n\n@platforms\n\nwhen flag clicked\nswitch costume to (tower bridge v)\nset [ghost v] effect to (100)\nforever\n    set [level v] to (costume [number v])\n    set [word v] to (costume [name v])\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Badness\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    switch costume to (Level)\nend\n\n@Text\n\nwhen flag clicked\nhide\n\ndefine Type (word)\nset [letter? v] to [0]\ngo to x: (-200) y: (-140)\nrepeat (length of (word))\n    change [letter? v] by (1)\n    if <(letter (Letter?) of (word)) = [ ]> then\n    move (12) steps\nend\n\nwhen I start as a clone\nshow\n\nwhen I receive [next level v]\ndelete this clone\n\nwhen I receive [next level v]\nwait (0.00000001) seconds\nType (Word)\n\nwhen flag clicked\nwait (0.0001) seconds\nType (Word)\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (200) y: (-150)\nforever\n    change [color v] effect by (pick random (3) to (5))\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        wait until <not <mouse down?>>\n        broadcast (Next level v)\n        set [speed x v] to [0]\n        set [speed y v] to [0]\n    end\nend\n\n