A platformer #games

Instructions: -Use arrow keys to move\n-Use space to attack\n -Heart and star if you like it.  \nhttps://scratch.mit.edu/projects/677784103

@Stage\n\n@Cat\n\nwhen flag clicked\ngo to x: (-178) y: (-106)\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (cat-a v)\n        point in direction (90)\n        change x by (10)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (cat-b v)\n        point in direction (-90)\n        change x by (-10)\n    end\nend\n\nwhen flag clicked\nset [velocity v] to [0]\nforever\n    if <touching (_edge_ v)?> then\n        set [velocity v] to [0]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [velocity v] to [15]\n        end\n    end\n    change y by (velocity)\n    change [velocity v] by (-1)\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (spike v)?> then\n        switch backdrop to (bedroom 1 v)\n        go to x: (-178) y: (-134)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (spike2 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (concert v)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (spike3 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (concert v)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (bedroom 1 v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line3 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (bedroom 1 v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line2 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (concert v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line4 v)?> then\n        go to x: (172) y: (-134)\n        switch backdrop to (bedroom 1 v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line5 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (jurassic v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (dinosaur2 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (jurassic v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line6 v)?> then\n        go to x: (172) y: (-134)\n        switch backdrop to (concert v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line7 v)?> then\n        go to x: (-178) y: (-134)\n        switch backdrop to (desert v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line8 v)?> then\n        switch backdrop to (basketball 1 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (spike omega v)?> then\n        switch backdrop to (basketball 1 v)\n        go to x: (-178) y: (-134)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (trampoline2 v)?> then\n        change [velocity v] by (-5)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (trampospikes v)?> then\n        switch backdrop to (basketball 1 v)\n        go to x: (-178) y: (-134)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line9 v)?> then\n        switch backdrop to (jurassic v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen flag clicked\nshow\nset [your health v] to [1]\nset [boss health v] to [10]\n\nwhen [any v] key pressed\nforever\n    if <touching (trampoline v)?> then\n        change [velocity v] by (30)\n    end\nend\n\nwhen [any v] key pressed\nforever\nend\n\nif <touching (line10 v)?> then\n    switch backdrop to (castle 2 v)\n    go to x: (-178) y: (-134)\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (bat v)?> then\n        switch backdrop to (castle 2 v)\n        go to x: (-178) y: (-134)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line11 v)?> then\n        switch backdrop to (castle 1 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line12 v)?> then\n        switch backdrop to (castle 3 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line12 v)?> then\n        switch backdrop to (castle 3 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line13 v)?> then\n        switch backdrop to (night city with street v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line14 v)?> then\n        switch backdrop to (night city with street v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Your health) = [0]> then\n        switch backdrop to (desert v)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (sprite7 v)?> then\n        switch backdrop to (night city with street v)\n        go to x: (-178) y: (-134)\n        change [your health v] by (-1)\n        change [attempts v] by (1)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (line15 v)?> then\n        switch backdrop to (blue sky2 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <(Your health) < [0]> then\n        set [your health v] to [0]\n    end\nend\n\nwhen [any v] key pressed\nforever\n    if <touching (sprite3 v)?> then\n        switch backdrop to (night city with street v)\n        go to x: (-178) y: (-134)\n        change [your health v] by (-1)\n        change [attempts v] by (1)\n    end\nend\n\nwhen flag clicked\nset [attempts v] to [0]\n\nwhen flag clicked\nrepeat (100)\n    play sound [Y2Mate v] until done\nend\n\nwhen flag clicked\nforever\n    if <(Your health) = [0]> then\n        broadcast (message1 v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nset size to (90) %\n\n@Spike\n\nwhen backdrop switches to [bedroom 1 v]\ngo to x: (6) y: (-176)\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\n@Spike2\n\nwhen backdrop switches to [concert v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [desert2 v]\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\n@Spike3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [concert v]\nshow\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [desert2 v]\nhide\n\nwhen flag clicked\nswitch backdrop to (desert v)\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\n@Line\n\nwhen backdrop switches to [desert v]\nshow\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nshow\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line3\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [desert v]\nshow\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nshow\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nshow\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line6\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nshow\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nshow\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nif <touching (dinosaur2 v)?> then\n    hide\nend\n\nif <touching (dinosaur2 v)?> then\n    hide\nend\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line8\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [jurassic v]\nshow\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [basketball 1 v]\nshow\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\n@Trampospikes\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [basketball 1 v]\nshow\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\n@Dinosaur2\n\nwhen backdrop switches to [jurassic v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (meow v)?> then\n        hide\n    end\nend\n\n@meow\n\nwhen flag clicked\nhide\nforever\n    if <key (right arrow v) pressed?> then\n        set [catdirection v] to [90]\n    end\n    if <key (left arrow v) pressed?> then\n        set [catdirection v] to [-90]\n    end\nend\n\nwhen [space v] key pressed\ncreate clone of (_myself_ v)\npoint in direction (catdirection)\nif <key (space v) pressed?> then\n    show\n    go to (cat v)\n    if <(catdirection) = [90]> then\n        switch costume to (costume1 v)\n        forever\n            change x by (15)\n            if <touching (_edge_ v)?> then\n                hide\n            end\n        end\n    end\n    if <(catdirection) = [-90]> then\n        switch costume to (costume2 v)\n        forever\n            change x by (-15)\n            if <touching (_edge_ v)?> then\n                hide\n            end\n        end\n    end\nend\n\nwhen [any v] key pressed\nforever\n\nwhen [space v] key pressed\nforever\n    if <touching (sprite3 v)?> then\n        wait (.1) seconds\n        hide\n    end\nend\n\nwhen [space v] key pressed\nset volume to (100) %\nplay sound [pop v] until done\n\nwhen [space v] key pressed\nplay sound [Meow v] until done\n\n@Sprite1\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\n@Spike omega\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nshow\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\n@Line9\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nshow\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line10\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nshow\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [castle 2 v]\nshow\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [castle 1 v]\nhide\n\n@Line11\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nshow\n\nwhen backdrop switches to [castle 1 v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line12\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [castle 1 v]\nshow\n\nwhen backdrop switches to [castle 2 v]\nhide\n\nwhen backdrop switches to [castle 3 v]\nhide\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Line13\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [castle 1 v]\nhide\n\nwhen backdrop switches to [castle 3 v]\nshow\n\nwhen [any v] key pressed\nforever\n    if <touching (line11 v)?> then\n        switch backdrop to (castle 1 v)\n        go to x: (-178) y: (-134)\n    end\nend\n\nwhen backdrop switches to [night city with street v]\nhide\n\n@Bat\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [castle 2 v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (meow v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nif <(Boss health) = [16]> then\n    go to (sprite3 v)\n    forever\n        change x by (10)\n    end\nend\n\nif <(Boss health) = [16]> then\n    go to (sprite3 v)\n    forever\n        change x by (10)\n    end\nend\n\nif <(Boss health) = [16]> then\n    go to (sprite3 v)\n    forever\n        change x by (10)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [night city with street v]\nshow\n\nwhen flag clicked\nset [boss health v] to [10]\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (meow v)?> then\n        change [boss health v] by (-1)\n        wait (1.75) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Boss health) = [0]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [blue sky2 v]\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen I receive [fun v]\nswitch costume to (costume2 v)\nwait (.3) seconds\nswitch costume to (costume1 v)\n\n@Line14\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [night city with street v]\nshow\n\n@Line15\n\nwhen backdrop switches to [blue sky2 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [night city with street v]\nshow\n\n@Cat2\n\nwhen backdrop switches to [blue sky2 v]\nswitch costume to (cat-a v)\nshow\nforever\n    if <touching (cat v)?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [blue sky2 v]\nshow\nwait (5) seconds\nhide\nbroadcast (Messgae win v)\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [messgae win v]\nshow\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [desert v]\nhide\n\nwhen backdrop switches to [bedroom 1 v]\nhide\n\nwhen backdrop switches to [concert v]\nhide\n\nwhen backdrop switches to [jurassic v]\nhide\n\nwhen backdrop switches to [basketball 1 v]\nhide\n\nwhen backdrop switches to [castle 2 v]\nhide\n\nwhen backdrop switches to [castle 1 v]\nhide\n\nwhen backdrop switches to [castle 3 v]\nhide\n\nwhen backdrop switches to [night city with street v]\nforever\n    wait (pick random (3) to (6)) seconds\n    go to x: (50) y: (-131)\n    show\n    broadcast (FUN v)\n    forever\n        point in direction (-90)\n        change x by (-10)\n        if <touching (_edge_ v)?> then\n            go to x: (50) y: (-131)\n        end\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [blue sky2 v]\nhide\n\nwhen backdrop switches to [blue sky v]\nhide\n\nwhen flag clicked\nforever\n    if <(Boss health) = [0]> then\n        hide\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (.1) seconds\n    change [time v] by (.1)\nend\n\nwhen [space v] key pressed\nforever\n    if <(Time) < (Highscore)> then\n        if <(Boss health) = [0]> then\n            set [highscore v] to (Time)\n        end\n    end\nend\n\n