Red ll a Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [nebula v] until done\nend\n\n@player\n\nwhen flag clicked\nshow\nhide variable [level v]\nset [level v] to [0]\ngo to x: (-175) y: (0)\nswitch costume to (right v)\nforever\n    change y by (Y)\n    change x by (X)\n    if <touching (ground v)?> then\n        set [y v] to [0]\n        if <key (up arrow v) pressed?> then\n            broadcast (jump v)\n        end\n    else\n        set [y v] to [-5]\n    end\n    if <<<touching (danger v)?> or <touching (enemy v)?>> or <touching (spikes v)?>> then\n        go to x: (-175) y: (0)\n        play sound [Crunch v] until done\n    end\n    if <(x position) > [250]> then\n        change [level v] by (1)\n        go to x: (-175) y: (0)\n        broadcast (next level v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        set [x v] to [7]\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to (left v)\n            set [x v] to [-7]\n        else\n            set [x v] to [0]\n            switch costume to (non v)\n        end\n    end\n    if <touching color (#940000)?> then\n        change x by (-10)\n    end\nend\n\nwhen I receive [message1 v]\nswitch costume to (up v)\n\n@ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@jump\n\nwhen I receive [jump v]\nrepeat (15)\n    change [y v] by (10)\n    broadcast (message1 v)\nend\nwait until <color (#ff0000) is touching (#ff6060)?>\n\n@danger\n\nwhen flag clicked\nswitch costume to (0 v)\n\nwhen I receive [next level v]\nnext costume\n\n@next level\n\nwhen I receive [next level v]\nshow\nglide (1) secs to x: (-479) y: (0)\ngo to x: (463) y: (0)\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (463) y: (0)\nhide\n\n@enemy\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [7]> then\n        switch costume to (non v)\n        show\n        go to x: (35) y: (-76)\n        repeat until <(level) > [7]>\n            glide (0.5) secs to x: (138) y: (-76)\n            glide (0.5) secs to x: (35) y: (-76)\n        end\n    end\n    if <not <(level) = [7]>> then\n        hide\n    end\nend\n\n@spikes\n\nwhen flag clicked\nhide\nforever\n    turn right (15) degrees\n    if <(level) = [9]> then\n        switch costume to (costume1 v)\n        show\n        go to x: (178) y: (126)\n        repeat until <(level) > [9]>\n            glide (1) secs to x: (pick random (-105) to (125)) y: (-64)\n            go to x: (178) y: (126)\n        end\n    end\n    if <not <(level) = [9]>> then\n        hide\n    end\nend\n\n@rocket (done)\n\nwhen flag clicked\nhide variable [☁ word time v]\ngo to [front v] layer\nhide variable [time v]\nhide\nswitch costume to (costume1 v)\nforever\n    if <(level) = [11]> then\n        show\n        if <touching (player v)?> then\n            show variable [time v]\n            switch costume to (costume2 v)\n            show variable [☁ word time v]\n            if <(TIME) > (☁ word time)> then\n                set [☁ word time v] to (TIME)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nrepeat until <touching (player v)?>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n
~~Red Platfomer~~\n-Story\nYou are on lost in Red Planet\nFind the rocket ship to go back to Earth!\n-Controls\nmove with arrow keys\n\n-Avoid spikes , lava  and enemy