Space - A Platformer (Beta)

Instructions: Version 1.1: Release of "Space - A Platformer" \n-----------------------------------------------------------------\nUpdate 1.2:\nTHE WALL GLITCH IS SOLVED! \nPUSH R TO TELEPORT TO THE BEGINNING!\n-----------------------------------------------------------------\nUpdate 1.3:\nTrampolines, More Levels, Bug fixes, Wall glitch patched! \n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nwait (3.5) seconds\nforever\n    play sound [bensound-deepblue v] until done\nend\n\nwhen backdrop switches to [story v]\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (10) y: (0)\nset [ghost v] effect to (100)\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\ngo to x: (10) y: (0)\n\nmove (10) steps\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait (8) seconds\nshow\ngo to x: (10) y: (0)\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\n@Sprite3\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\ngo to x: (12) y: (-101)\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nforever\n    turn right (2) degrees\nend\n\nwhen this sprite clicked\nbroadcast (mess2 v)\nrepeat (100)\n    change [ghost v] effect by (5)\nend\nwait (.1) seconds\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwait (1) seconds\n\nwhen backdrop switches to [backdrop1 v]\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\n@Sprite4\n\nwhen flag clicked\nforever\n    if <touching color (#38ff39)?> then\n        broadcast (death v)\n        wait (.00001) seconds\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (3) seconds\n        go to x: (-178) y: (-114)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (-178) y: (-114)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (costume2 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (costume4 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#949494)?> then\n        change y by (1)\n        if <touching color (#949494)?> then\n            change y by (1)\n            if <touching color (#949494)?> then\n                change y by (1)\n                if <touching color (#949494)?> then\n                    change y by (1)\n                    if <touching color (#949494)?> then\n                        change y by (1)\n                        if <touching color (#949494)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <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 [12]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#949494)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#949494)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    if <touching color (#3a3a3a)?> then\n        set [yv v] to [20]\n    end\n    change y by (1)\nend\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (-190) y: (-95)\n\nwhen flag clicked\nforever\n    if <touching color (#000000)?> then\n        broadcast (bob v)\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (3) seconds\n        next backdrop\n        go to x: (-178) y: (-114)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen flag clicked\n\nnext backdrop\n\nwhen [r v] key pressed\ngo to x: (-178) y: (-114)\n\n@Rocketship\n\nwhen I receive [death v]\nwait (.00001) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo [forward v] (999) layers\n\nwhen I receive [bob v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [backdrop8 v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@Sprite5\n\nwhen backdrop switches to [backdrop1 v]\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nswitch backdrop to (story v)\n\nwhen flag clicked\nforever\n    turn right (1.5) degrees\nend\n\nwhen this sprite clicked\nwait (1) seconds\nbroadcast (message1 v)\nrepeat (100)\n    change [ghost v] effect by (5)\nend\nwait (.1) seconds\nswitch backdrop to (story v)\n\nwhen flag clicked\ngo to x: (-157) y: (-55)\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen backdrop switches to [backdrop2 v]\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\n@Sprite6\n\nwhen backdrop switches to [story v]\nshow\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nwhen this sprite clicked\nrepeat (100)\n    change [ghost v] effect by (5)\nend\nwait (.1) seconds\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\nset [ghost v] effect to (100)\n\n@Sprite7\n\nwhen backdrop switches to [story v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [backdrop1 v]\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\n@Sprite8\n\nwhen backdrop switches to [backdrop1 v]\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen backdrop switches to [backdrop2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [story v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\n@Sprite9\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen backdrop switches to [backdrop2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [story v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [backdrop1 v]\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [bob v]\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\n@Sprite10\n\nwhen I receive [bob v]\nshow\nrepeat (4)\n    change [ghost v] effect by (-25)\nend\nwait (2) seconds\nrepeat (4)\n    change [ghost v] effect by (25)\nend\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Sprite11\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [death v]\nshow\nrepeat (4)\n    change [ghost v] effect by (-25)\nend\nwait (2) seconds\nrepeat (4)\n    change [ghost v] effect by (25)\nend\nhide\n\n@Sprite12\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\ngo to x: (165) y: (-41)\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nforever\n    turn right (1) degrees\nend\n\nwhen this sprite clicked\nbroadcast (credits v)\nrepeat (100)\n    change [ghost v] effect by (5)\nend\nwait (.1) seconds\nswitch backdrop to (backdrop7 v)\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwait (1) seconds\n\nwhen backdrop switches to [backdrop1 v]\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\n@Sprite13\n\nwhen backdrop switches to [backdrop1 v]\nhide\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nrepeat (100)\n    change [ghost v] effect by (5)\nend\nwait (.1) seconds\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [backdrop7 v]\nshow\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\n@Sprite14\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [backdrop8 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [credits v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (16.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [mess2 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [backdrop1 v]\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [message1 v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [story v]\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\ngo [backward v] (99999) layers\n\n