SawBlade - A Mobile Friendly Platformer #Games #All

Instructions: This is SawBlade, a platformer. One of my best platformers yet!\n\nIf you get really stuck, press "s"\nArrow keys to move, or wasd.\nmobile friendly.\n\n\nI Spent quite a few hours on this :) please appreciate this.\n\n

@Stage\n\nwhen flag clicked\nbroadcast (Green Flag v)\n\n@Platforms\n\nwhen I receive [finish v]\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (costume3 v)\n\nwhen I receive [finish v]\nif <(costume [number v]) = [2]> then\n    broadcast (UP TO 2 v)\nend\nif <(costume [number v]) = [3]> then\n    broadcast (3 v)\nend\nif <(costume [number v]) = [4]> then\n    broadcast (4 v)\nend\nif <(costume [number v]) = [5]> then\n    broadcast (5 v)\nend\nif <(costume [number v]) = [6]> then\n    broadcast (6 v)\nend\nif <(costume [number v]) = [7]> then\n    broadcast (7 v)\nend\nif <(costume [number v]) = [8]> then\n    broadcast (End v)\nend\n\nwhen I receive [end v]\nforever\n    stop [other scripts in sprite v]\nend\n\n@StratfordJames\n\nwhen flag clicked\nforever\n    if <<key (p v) pressed?> and <not <(LEVEL) = [15]>>> then\n        wait until <not <key (p v) pressed?>>\n        broadcast (someone pressed S key v)\n        go to x: (-223) y: (-80)\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching (platforms v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (platforms v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [237]> then\n        broadcast (FINISH v)\n        go to x: (-207) y: (46)\n    end\n    if <touching (heart and start v)?> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (spikes v)?> or <touching (lava v)?>> or <<touching color (#949494)?> or <(y position) < [-171]>>> then\n        go to x: (-207) y: (46)\n    end\nend\n\nwhen flag clicked\n\nforever\n    if <touching (bounce pad v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Masked Heroes.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-223) y: (-80)\n    end\nend\n\nwhen I receive [someone pressed s key v]\nchange [level v] by (1)\n\nwhen I receive [finish v]\nchange [level v] by (1)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [someone pressed skip button v]\ngo to x: (-223) y: (-80)\n\nwhen flag clicked\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-207) y: (46)\nforever\n    create clone of (_myself_ v)\n    change [y v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        switch costume to (costume1 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platforms v)?> then\n        fast\n        if <touching (platforms v)?> then\n            change y by (-6)\n            xcoll\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                set [y v] to [13]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-7]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (platforms v)?> then\n        ycoll\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [13]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bounce pad v)?> then\n        play sound [Boing v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        wait until <not <mouse down?>>\n        broadcast (FINISH v)\n        go to x: (-207) y: (46)\n    end\nend\n\nwhen I start as a clone\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [someone pressed skip button v]\nbroadcast (FINISH v)\ngo to x: (-223) y: (-80)\n\n@Background\n\nwhen I receive [finish v]\nnext costume\n\nwhen I receive [green flag v]\ngo to [back v] layer\nswitch costume to (costume1 v)\n\n@Saws\n\nwhen I receive [green flag v]\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (-65) y: (-16)\nforever\n    turn left (5) degrees\nend\n\nwhen I start as a clone\npoint in direction (90)\ngo to x: (4) y: (-142)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [finish v]\ndelete this clone\n\nwhen I receive [up to 2 v]\nswitch costume to (costume2 v)\npoint in direction (90)\nstop [other scripts in sprite v]\ngo to x: (4) y: (-106)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [3 v]\nswitch costume to (costume2 v)\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (4) y: (10)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [4 v]\nswitch costume to (costume1 v)\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (7) y: (-131)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [5 v]\ngo to x: (-113) y: (-33)\npoint in direction (-90)\n\nwhen I receive [6 v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [7 v]\nshow\nswitch costume to (costume3 v)\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (-124) y: (-130)\nforever\n    turn left (4) degrees\nend\n\nwhen I receive [end v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Saws3\n\nwhen I receive [green flag v]\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (68) y: (-17)\nforever\n    turn left (5) degrees\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\npoint in direction (90)\ngo to x: (220) y: (4)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [finish v]\ndelete this clone\n\nwhen I receive [up to 2 v]\nswitch costume to (costume3 v)\nstop [other scripts in sprite v]\ngo to x: (-98) y: (-28)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [3 v]\nswitch costume to (costume3 v)\npoint in direction (90)\nstop [other scripts in sprite v]\ngo to x: (125) y: (106)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [4 v]\nswitch costume to (costume1 v)\npoint in direction (90)\nstop [other scripts in sprite v]\ngo to x: (-124) y: (-129)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [5 v]\ngo to x: (-59) y: (-33)\npoint in direction (-90)\n\nwhen I receive [6 v]\nswitch costume to (costume1 v)\npoint in direction (90)\nstop [other scripts in sprite v]\ngo to x: (-59) y: (-39)\nforever\n    turn left (-4) degrees\nend\n\nbroadcast (7 v)\n\nwhen flag clicked\nshow\n\nwhen I receive [7 v]\nswitch costume to (costume1 v)\npoint in direction (0)\nstop [other scripts in sprite v]\ngo to x: (6) y: (-129)\nforever\n    turn left (4) degrees\nend\n\nwhen I receive [end v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Saws2\n\nwhen I receive [up to 2 v]\nshow\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (85) y: (-44)\nforever\n    turn left (5) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (140) y: (-128)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [finish v]\ndelete this clone\n\nwhen I receive [3 v]\nshow\nswitch costume to (costume2 v)\npoint in direction (90)\nstop [other scripts in sprite v]\ngo to x: (128) y: (-13)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [4 v]\nshow\npoint in direction (90)\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\ngo to x: (141) y: (-130)\nforever\n    turn left (5) degrees\nend\n\nbroadcast (4 v)\n\nwhen I receive [5 v]\ngo to x: (-3) y: (-34)\npoint in direction (-90)\n\nwhen I receive [6 v]\nhide\n\nwhen I receive [end v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Saws4\n\nwhen flag clicked\nhide\n\nwhen I receive [3 v]\nshow\nswitch costume to (costume2 v)\ngo to x: (160) y: (-143)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [4 v]\nhide\n\nwhen I receive [5 v]\nshow\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\npoint in direction (-90)\ngo to x: (52) y: (-33)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [6 v]\nhide\n\nwhen I receive [end v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Saws5\n\nwhen flag clicked\nhide\n\nwhen I receive [5 v]\nshow\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\npoint in direction (-90)\ngo to x: (108) y: (-34)\nforever\n    turn left (5) degrees\nend\n\nwhen I receive [6 v]\nstop [other scripts in sprite v]\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\npoint in direction (180)\ngo to x: (108) y: (-39)\nforever\n    turn left (-4) degrees\nend\n\nwhen I start as a clone\ngo to x: (42) y: (110)\nforever\n    turn left (4) degrees\nend\n\nwhen I receive [3 v]\nshow\nstop [other scripts in sprite v]\nswitch costume to (costume2 v)\npoint in direction (-90)\ngo to x: (-102) y: (177)\nforever\n    turn left (-5) degrees\nend\n\nwhen I receive [4 v]\nhide\n\nwhen I receive [finish v]\ndelete this clone\n\nwhen I receive [7 v]\nstop [other scripts in sprite v]\nshow\nswitch costume to (costume3 v)\npoint in direction (-90)\ngo to x: (143) y: (-129)\nforever\n    turn left (4) degrees\nend\n\ncreate clone of (_myself_ v)\n\nwhen I receive [end v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Heart and Start\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\ngo to [front v] layer\nshow\nset size to (100) %\nshow\ngo to (random position v)\nset y to (180)\nforever\n    change y by (-4)\n    if <(y position) < [-176]> then\n        go to (random position v)\n        set y to (180)\n    end\n    if <touching (stratfordjames v)?> then\n        change [hearts, stars and followers collected v] by (1)\n        wait (0.01) seconds\n        delete this clone\n    end\nend\n\nwhen I receive [end v]\nshow variable [hearts, stars and followers collected v]\nset [hearts, stars and followers collected v] to [0]\nforever\n    switch costume to (pick random (1) to (3))\n    wait (pick random (1) to (2)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide variable [hearts, stars and followers collected v]\n\nwhen I receive [end v]\n\n@ThumnailSawsSprite1\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n