Explore - Platformer remix

Instructions: -click on the green flag\n-use the arrows or WASD\n-follow me\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nLOL\n

@Stage\n\n@Player\n\nwhen flag clicked\nshow\ngo to x: (-216) y: (-150)\nswitch costume to (player right v)\ngo to [front v] layer\nforever\n    if <(y position) = [-180]> then\n        switch costume to (player v)\n        broadcast (Respawn v)\n        go to x: (-216) y: (-150)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (player right v)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (player left v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\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 v] by (-1)\n    change y by (Y)\n    if <touching (levels v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching (obstacles v)?> then\n        broadcast (Respawn v)\n        go to x: (-210) y: (-110)\n        switch costume to (player v)\n    end\n    if <(x position) > [227]> then\n        go to x: (-216) y: (-144)\n        change [level v] by (1)\n        switch costume to (player right v)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [20]\n    end\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Background\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (sky v)\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch costume to (sun v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        switch costume to (sky v)\n    end\nend\n\n@Text\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Obstacles\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Trampoline\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Shadows\n\nwhen flag clicked\nshow\ngo [backward v] (100) layers\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [bensound-happiness v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@Restart Button\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    if <mouse down?> then\n        set [level v] to [1]\n    end\nend\n\n@clouds\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (2.5) to (3.5)) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (1) layers\nset size to (pick random (50) to (70)) %\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (30) to (45))\nset [cloud side v] to (pick random (1) to (2))\nif <(Cloud side) = [1]> then\n    go to x: (246) y: (pick random (140) to (80))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (140) to (80))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\n