platformer of freedom

Instructions: Wasd. s is sneak/crouch.

@Stage\n\n@player\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nhide variable [deaths v]\nset [deaths v] to [0]\ngo to x: (-176) y: (-67)\nswitch costume to (costume2 v)\nset size to (200) %\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (0.5)\n    end\n    if <(x position) > [230]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-176) y: (-67)\n    end\n    change x by (Xv)\n    set [xv v] to ((Xv) * (0.9))\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <touching color (#000000)?> then\n            change y by (0.5)\n            if <touching color (#000000)?> then\n                change y by (0.5)\n                if <touching color (#000000)?> then\n                    change y by (0.5)\n                    if <touching color (#000000)?> then\n                        change y by (0.5)\n                        if <touching color (#000000)?> then\n                            change y by (0.5)\n                            if <touching color (#000000)?> then\n                                change y by (0.5)\n                                if <touching color (#000000)?> then\n                                    change y by (0.5)\n                                    if <touching color (#000000)?> then\n                                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                            if <(Xv) > [0]> then\n                                                set [xv v] to [-7]\n                                            else\n                                                set [xv v] to [7]\n                                            end\n                                            set [yv v] to [10]\n                                        else\n                                            set [xv v] to ((Xv) * (-1.3))\n                                            change x by (Xv)\n                                            set [xv v] to [0]\n                                            change x by ((Xv) / (5))\n                                        end\n                                        change y by (-4)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.5)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        set [yv v] to ((Yv) * (-0.25))\n        change y by (Yv)\n        if <touching color (#000000)?> then\n            change y by (Yv)\n            if <touching color (#000000)?> then\n                change y by (Yv)\n                if <touching color (#000000)?> then\n                    change y by (Yv)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (costume2 v)\n        set [yv v] to [10]\n    end\n    change y by (1)\nend\n\nwhen I receive [new v]\ngo to x: (-176) y: (-67)\n\nwhen flag clicked\nforever\n    if <touching color (#808080)?> then\n        change [deaths v] by (1)\n        play sound [laser2 v] until done\n        go to x: (-176) y: (-67)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        switch costume to (costume4 v)\n    end\nend\n\n