santa platformer

Instructions: use arrow keys to move\nUp arrow to jump\nthere is wall jumping\nred kills you\nblue shoots you up\n

@Stage\n\n@download (2)\n\nwhen flag clicked\nset [x v] to [0]\nset [y v] to [0]\nshow\nforever\n    change [y v] by (-1)\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000008)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000008)?>> then\n        set [y v] to [17]\n    end\n    change y by (1)\n    if <touching color (#003fff)?> then\n        set [y v] to [25]\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-214) y: (-114)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\nend\n\nwhen flag clicked\nswitch costume to (download \(2\) v)\nswitch backdrop to (backdrop1 v)\ngo to x: (-201) y: (-119)\nset [stage v] to [1]\nforever\n    if <<(x position) > [237]> and <not <<(stage) = [20]> or <(stage) = [21]>>>> then\n        go to x: (-214) y: (-114)\n        change [stage v] by (1)\n        switch backdrop to (next backdrop v)\n    end\n    if <(stage) = [8]> then\n        if <touching color (#ff9999)?> then\n            switch costume to (cool santa v)\n        end\n        if <touching color (#6600cc)?> then\n            switch costume to (download \(2\) v)\n        end\n    end\n    if <(stage) = [15]> then\n        if <touching color (#ff9999)?> then\n            switch costume to (cool santa v)\n        end\n        if <touching color (#6600cc)?> then\n            switch costume to (download \(2\) v)\n        end\n        if <touching color (#ffd499)?> then\n            switch costume to (santa_claus_png38508 v)\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [mesage v] to [0]\nhide\nforever\n    if <(stage) = [7]> then\n        go to x: (163) y: (-36)\n        show\n        if <touching (download \(2\) v)?> then\n            broadcast (unhide 1 v)\n            change [mesage v] by (1)\n            forever\n                hide\n            end\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (17) y: (-150)\nhide\nforever\n    if <<(stage) = [7]> and <(mesage) = [0]>> then\n        show\n    end\nend\n\nwhen I receive [unhide 1 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nset [score v] to [0]\nhide\ngo to (random position v)\nset y to (180)\nforever\n    if <(stage) = [20]> then\n        show\n        change y by (-5.5)\n        if <touching (download \(2\) v)?> then\n            change [score v] by (1)\n            go to (random position v)\n            set y to (180)\n        end\n        if <touching color (#000000)?> then\n            switch backdrop to (cool santa v)\n            set [stage v] to [8]\n            hide\n        end\n        if <(score) = [10]> then\n            switch backdrop to (win v)\n        end\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\n