Halloween Platformer #Platformer #Trending #Games
@Stage\n\n@Player\n\nwhen flag clicked\nset [gravity v] to [-1.5]\nset [jump force v] to [15]\nset [acceleration v] to [1.8]\nset [resistance v] to [0.8]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to (JUMP FORCE)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by ((0) - (ACCELERATION))\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (ACCELERATION)\n    end\n    set [speed x v] to ((speed x) * (RESISTANCE))\n    change [speed y v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nend\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#000000)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#000000)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide variable [acceleration v]\nhide variable [falling v]\nhide variable [gravity v]\nhide variable [jump force v]\nhide variable [last value v]\nhide variable [resistance v]\nhide variable [speed x v]\nhide variable [speed y v]\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        next backdrop\n        go to x: (-203) y: (30)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <touching color (#f60000)?> then\n        go to x: (-202) y: (64)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    change [timer v] by (0.1)\nend\n\nwhen flag clicked\nset [timer v] to [0]\n\nwhen backdrop switches to [scene 7 v]\ngo to x: (0) y: (13)\nforever\n    stop [all v]\nend\n\nwhen backdrop switches to [scene9 v]\nsay [Finally I am Safe!!!] for (1.5) seconds\nsay [Ahhh!!] for (.5) seconds\nsay [Run!!!] for (.5) seconds\n\nwhen backdrop switches to [scene10 v]\nsay [Lets Go inside their house and look for some Candy!!!] for (2) seconds\n\nwhen flag clicked\nforever\n    if <touching color (#9cae9c)?> then\n        switch backdrop to (scene11 v)\n    end\nend\n\nwhen backdrop switches to [scene11 v]\ngo to x: (-207) y: (-23)\n\nwhen flag clicked\nforever\n    if <touching color (#57348a)?> then\n        switch backdrop to (scene 7 v)\n    end\nend\n\nwhen backdrop switches to [scene11 v]\nsay [My Favorite Candy...] for (1) seconds\nsay [Reese's!!!] for (.5) seconds\n\nwhen backdrop switches to [backdrop1 v]\nsay [I'm Hungry] for (1) seconds\nsay [Lets Go look for some Candy!!!] for (1.5) seconds\n\nwhen backdrop switches to [scene 4 v]\ngo to x: (-210) y: (51)\n\nwhen flag clicked\nshow\n\n@Witch\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene9 v]\nwait (2) seconds\nswitch costume to (screenshot 2022-10-04 3 v)\n\nwhen backdrop switches to [scene9 v]\nshow\ngo to x: (170) y: (115)\n\nwhen backdrop switches to [scene10 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
Happy Halloween!!!\nUp Arrow is Jump\nLeft Arrow is Left\nRight Arrow is Right\n\n