sharkyshar platformer
@Stage\n\n@download (5)\n\nwhen flag clicked\ngo to x: (-92) y: (-25)\nswitch costume to (download \(5\) v)\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-127) y: (-60)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\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\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <(y position) < [-185]> then\n        go to x: (-121) y: (-26)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> 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 [17]\n            if <(x) > [0]> 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 (#000000)?> 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 (#000000)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-173) y: (-24)\n    end\n    if <(x position) > [273]> then\n        broadcast (message1 v)\n        go to x: (-173) y: (-24)\n    end\nend\n\nnext costume\n\ngo to x: (-9) y: (-172)\n\nchange x by (-1)\n\nwhen I receive [2 v]\ngo to x: (-217) y: (-20)\n\nwhen flag clicked\nforever\n    repeat (10)\n        if <touching color (#00ff43)?> then\n            broadcast (2 v)\n        end\n    end\nend\n\nwhen I receive [2 v]\ngo to x: (-173) y: (-24)\n\nwhen flag clicked\nforever\n    repeat (10)\n        play sound [Quack Song2 v] until done\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [message1 v]\nnext costume\nshow\ngo to x: (134) y: (-101)\n\nwhen flag clicked\nforever\n    repeat (10)\n        if <touching color (#0021ff)?> then\n            hide\n        end\n    end\nend\n\nif <touching (_edge_ v)?> then\n\nchange y by (1)\n\nwhen flag clicked\nforever\n    repeat (10)\n        repeat (48)\n            change x by (-15)\n        end\n        repeat (48)\n            change x by (15)\n        end\n    end\nend\n\n@Sprite2\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\n@Sprite3\n\nwhen [space v] key pressed\ngo to (download \(5\) v)\nchange y by (50)\nwait (0.1) seconds\nswitch costume to (costume1 v)\nshow\nwait (0.1) seconds\nswitch costume to (costume2 v)\nwait (0.1) seconds\nswitch costume to (costume3 v)\nwait (0.1) seconds\nswitch costume to (costume4 v)\nswitch costume to (costume1 v)\nhide\nwait (2) seconds\n\nswitch costume to (costume4 v)\n\nswitch costume to (costume4 v)\n\nshow\n\npoint in direction (30)\n\nmove () steps\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume1 v)\n\nshow\n\nwhen flag clicked\nforever\n    repeat (10)\n        if <touching color (#0021ff)?> then\n            hide\n        end\n    end\nend\n\nwhen I receive [message1 v]\nnext costume\nshow\n\nshow\n\n@Sprite5\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nforever\n    repeat (10)\n        show\n        glide (2) secs to (download \(5\) v)\n        point in direction <touching (download \(5\) v)?>\n        wait (2) seconds\n        go to x: (-71) y: (107)\n        hide\n        wait (1) seconds\n    end\nend\n\nhide\n\n@Sprite6\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    repeat (1)\n        if <touching color (#0021ff)?> then\n            next costume\n        end\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
arrow keys \npress space to attack