ExoWare: Platformer part I

Instructions: note: this is completely possible.\nanother note: I didn't mean to copy the storyline of terminator. it was a complete coincidence\nthis is part I of my new platformer series! be sure to love, favorite and follow for part II!\n\nNOTE: ground slam is glitched, so don’t spam me in the comments about it. I already know, and I’m trying to fix it.

@Stage\n\nwhen I receive [play game v]\nswitch backdrop to (backdrop2 v)\nplay sound [734427_Pyrolysis.mp3 v] until done\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nplay sound [686782_Badland.mp3 v] until done\n\nwhen backdrop switches to [backdrop14 v]\nstop all sounds\n\nwhen I receive [next level v]\nwait (1) seconds\nnext backdrop\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\nrepeat (6)\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\n    wait (1.2) seconds\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    next costume\nend\nhide\nbroadcast (message1 v)\n\nwhen backdrop switches to [backdrop14 v]\nwait (2.5) seconds\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume7 v)\nrepeat (2)\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\n    wait (2) seconds\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    next costume\nend\nhide\nstop [all v]\n\n@Sprite2\n\nwhen I receive [message1 v]\ngo to x: (-480) y: (0)\nshow\nrepeat (18)\n    change x by (10)\nend\nrepeat (7)\n    change x by (5)\nend\nrepeat (3)\n    change x by (4)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\n@Sprite3\n\nwhen I receive [message1 v]\ngo to x: (480) y: (0)\nshow\nrepeat (18)\n    change x by (-10)\nend\nrepeat (7)\n    change x by (-5)\nend\nrepeat (3)\n    change x by (-4)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\n@Sprite4\n\nwhen I receive [message1 v]\ngo to x: (0) y: (180)\nwait (1.8) seconds\nshow\nrepeat (10)\n    change y by (-8)\nend\nrepeat (5)\n    change y by (-4)\nend\nrepeat (3)\n    change y by (-2)\nend\nbroadcast (2 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        wait until <not <touching (mouse-pointer v)?>>\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nstop all sounds\nstart sound [quitSound_01.mp3 v]\nwait (0.5) seconds\nbroadcast (begin v)\n\nwhen flag clicked\ngo to x: (0) y: (-78)\nhide\n\nwhen I receive [2 v]\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [play game v]\nhide\n\n@Sprite6\n\nwhen I receive [begin v]\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (0.5) seconds\nbroadcast (play game v)\nhide\n\nwhen I receive [next level v]\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (0.2) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nhide\nbroadcast (glub v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (oof v)\n        start sound [med-rifle v]\n        go to x: (-210) y: (-100)\n        set [y vel v] to [0]\n    end\n    if <touching color (#cc7700)?> then\n        broadcast (next level v)\n        start sound [Laser Sound Effect-2 v]\n        hide\n    end\n    if <key (down arrow v) pressed?> then\n        change [y vel v] by (-3)\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nset size to (50) %\nswitch costume to (costume1 v)\ngo to x: (-210) y: (-100)\nset [x vel v] to [0]\nset [y vel v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [x vel v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [x vel v] by (-1)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((x vel) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(x vel) = [0]> then\n                                    set [x vel v] to [-5]\n                                else\n                                    set [x vel v] to [5]\n                                end\n                                set [y vel v] to [10]\n                            else\n                                set [x vel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching color (#000000)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [y vel v] to [13]\n            start sound [Whoosh sound effects \(from the tutorial\) v]\n        end\n    end\n    if <touching color (#00ffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y vel v] to [8]\n        else\n            set [y vel v] to [-1.5]\n        end\n    end\n    if <touching color (#ff9400)?> then\n        start sound [quick dash v]\n        set [y vel v] to [24]\n    end\n    if <touching color (#ff00bf)?> then\n        if <key (up arrow v) pressed?> then\n            set [y vel v] to [13]\n            start sound [quick dash v]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [play game v]\ngo to x: (-210) y: (-100)\nshow\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        play sound [bubbles v] until done\n    end\nend\n\nwhen I receive [glub v]\ngo to x: (-210) y: (-100)\nshow\n\nwhen I receive [play game v]\nrepeat until <(backdrop [name v]) = [backdrop14]>\n    create clone of (_myself_ v)\n    wait (0.06) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (99) layers\nset size to (50) %\nset [ghost v] effect to (25)\nshow\nrepeat (15)\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nwhen backdrop switches to [backdrop14 v]\nforever\n    hide\nend\n\n