WIP Escapeformer--A Platformer/Escape game remix
@Stage\n\nwhen backdrop switches to [sunny day reg v]\nbroadcast (LavaHide v)\n\nwhen backdrop switches to [sunny day lvl4 v]\nbroadcast (ShowLava v)\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (sunny day reg v)\n\nwhen backdrop switches to [sunny daylvl2 v]\nbroadcast (ChangeLavaLVL2 v)\n\nwhen backdrop switches to [backdrop1 v]\nbroadcast (Chlava4 v)\n\nwhen backdrop switches to [backdrop2 v]\nbroadcast (LavaHide v)\n\nwhen backdrop switches to [end v]\nbroadcast (message1 v)\nstop [all v]\n\nwhen backdrop switches to [lvl5 v]\nbroadcast (Lvl5 v)\n\nwhen backdrop switches to [lvl6 v]\nbroadcast (LVL6 v)\n\nwhen backdrop switches to [jail! v]\nbroadcast (EscapeStart v)\n\nwhen backdrop switches to [backdrop3 v]\nerase all\n\n@Ground\n\nwhen I receive [message1 v]\nhide\n\nwhen flag clicked\nshow\n\nshow\n\nwhen I receive [lvl6 v]\nhide\n\n@Sprite1\n\ndefine Touch Ground\nrepeat until <not <<touching (ground v)?> or <touching color (#995900)?>>>\n    change y by (1)\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        change x by (-4)\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (4)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        broadcast (death v)\n    end\nend\n\nwhen I receive [death v]\ngo to x: (-233) y: (-140)\n\nwhen I receive [next level v]\ngo to x: (-161) y: (-15)\n\ngo to [front v] layer\n\nwhen I receive [chlava4 v]\nthink [Woah... Why is there so much lava?] for (2) seconds\n\nwhen I receive [message1 v]\nhide\n\nwhen I receive [changelavalvl2 v]\nsay [I can climb trees. Stick to a trunk and see!] for (3) seconds\n\nwhen flag clicked\nset [speed y v] to [0]\nbroadcast (start1 v)\nforever\n    change [speed y v] by (-1)\n    change y by (speed y)\n    if <<touching (ground v)?> or <touching color (#995900)?>> then\n        set [speed y v] to [0]\n        change y by (1)\n    end\n    forever\n        change [speed y v] by (-1)\n        change y by (speed y)\n        Touch Ground\n    end\nend\n\nwhen I receive [start1 v]\nhide\ngo to x: (-233) y: (-140)\nshow\nrepeat until <(Finished) = [1]>\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (ground v)?> or <touching color (#995900)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching color (#995900)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching color (#995900)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching color (#995900)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching color (#995900)?>> then\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    if <<touching (ground v)?> or <touching color (#995900)?>> 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 [-5]\n            else\n                set [xv v] to [5]\n            end\n            set [yv v] to [10]\n        else\n            set [xv v] to [0]\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (ground v)?> or <touching color (#995900)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> or <touching color (#995900)?>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [20]\n        end\n    end\n    change y by (1)\n    if <(x position) = [298]> then\n        broadcast (next level v)\n    end\n    if <<touching (lava v)?> or <touching color (#cc0000)?>> then\n        broadcast (death v)\n    end\n    if <touching (fell v)?> then\n        broadcast (death v)\n    end\nend\n\n@Lava\n\nwhen I receive [showlava v]\nswitch costume to (lvl4 v)\ngo to x: (5) y: (-24)\nshow\n\nwhen I receive [lavahide v]\nhide\n\nwhen I receive [changelavalvl2 v]\ngo to x: (58) y: (17)\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [chlava4 v]\ngo to x: (106) y: (-51)\nswitch costume to (costume2 v)\nshow\n\ngo to x: (96) y: (11)\n\ngo to x: (99) y: (-7)\n\nwhen I receive [message1 v]\nhide\n\nwhen flag clicked\n\nwhen I receive [escapestart v]\nhide\n\nwhen I receive [lvl5 v]\nswitch costume to (costume3 v)\ngo to x: (67) y: (-25)\nshow\n\n@Sprite2\n\ngo to x: (-435) y: (68)\n\nwhen flag clicked\nshow\ngo [backward v] (1) layers\nforever\n    go to x: (342) y: (68)\n    glide (8) secs to x: (-435) y: (68)\nend\n\nwhen I receive [chlava4 v]\nhide\n\n@Sprite3\n\n@Sprite4\n\nwhen flag clicked\nhide\nset pen color to (#666666)\nset pen size to (50)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        pen down\n    else\n        pen up\n    end\nend\n\nwhen I receive [escapestart v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        say [I draw gray. Use me to color the door gray to escape!] for (0.5) seconds\n    else\n        switch costume to (costume1 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        say []\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [message1 v]\nhide\nerase all\n\nwhen [c v] key pressed\nerase all\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n
READ ALL INSTRUCTIONS, PLEASE. Thanks! <3\n\nHalf the game is a platformer game, half is an escape game.\n+++++++++++++++++++++++++++++++++++++++++++++++++++\nRules For Platformer:\n--> right\n<-- left\nUp key to jump.\n===================================================\nRules for Escape Game: \nTry to click and find different objects that will make the door open and let you free. Oh, I forgot... You are stuck in a room. Mwahahahhaha! >:)