Garrulous || a platformer #all #games

Instructions: MOVED TO: @GreenGeckoTV

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [run v]\nswitch backdrop to (backdrop1 v)\n\n@Sprite2\n\n@Player (MOVEMENTS)\n\ndefine Run Game\nchange [speed y v] by (-1)\npoint in direction (90)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-4)\n    point in direction (-90)\n    switch costume to (pick random (8) to (16))\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (4)\n    point in direction (90)\n    switch costume to (pick random (8) to (16))\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <touching (ground \(platform\) v)?> then\n    change y by (1)\n    if <touching (ground \(platform\) v)?> then\n        change y by (1)\n        if <touching (ground \(platform\) v)?> then\n            change y by (1)\n            if <touching (ground \(platform\) v)?> then\n                change y by (1)\n                if <touching (ground \(platform\) v)?> then\n                    change y by (1)\n                    if <touching (ground \(platform\) v)?> then\n                        change y by (1)\n                        if <touching (ground \(platform\) v)?> then\n                            change y by (1)\n                            if <touching (ground \(platform\) v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (ground \(platform\) v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground \(platform\) v)?>>\n        change x by ((Speed X) * (-1))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [speed y v] to [10]\n        if <(Speed X) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [-16]\n            switch costume to (fall v)\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground \(platform\) v)?> then\n    repeat until <not <touching (ground \(platform\) v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <touching (ground \(platform\) v)?>> then\n    switch costume to (jump v)\n    set [speed y v] to [14]\nend\nchange y by (1)\nif <(y position) < [-180]> then\n    Die／Reset\nend\nif <touching (level end\[reset\] v)?> then\n    Die／Reset\n    broadcast (NEXT LEVEL v)\n    change [level v] by (1)\nend\nif <key (r v) pressed?> then\n    Die／Reset\nend\nif <<touching (spikes v)?> or <touching (saws v)?>> then\n    Die／Reset\nend\nif <not <<key (down arrow v) pressed?> or <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<key (s v) pressed?> or <key (w v) pressed?>>>>>>>> then\n    switch costume to (idle v)\nend\nif <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n    switch costume to (crouch v)\nend\nif <<<key (s v) pressed?> or <key (down arrow v) pressed?>> and <<key (a v) pressed?> or <<key (d v) pressed?> or <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>>> then\n    switch costume to (slide v)\nend\nif <<key (z v) pressed?> and <(Level) = [8]>> then\n    broadcast (Skipped lv 8 v)\n    change [level v] by (1)\n    Die／Reset\nend\n\ndefine Die／Reset\ngo to x: (-230) y: (0)\nif <(Level) = [11]> then\n    go to x: (230) y: (0)\nend\n\nwhen I receive [run v]\nshow\nset [speed y v] to [5]\nset [speed x v] to [-193]\ngo to x: (-230) y: (-20)\nset rotation style [left-right v]\nset [level v] to [1]\nforever\n    Run Game\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<(Level) = [8]> and <<(x position) > [100]> and <(y position) > [-120]>>> then\n    end\nend\n\nsay [XD] for (2) seconds\n\n@Ground (PlATFORM)\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [run v]\nswitch costume to (costume1 v)\nshow\nforever\n    switch costume to (Level)\nend\n\nchange [color v] effect by (25)\n\nchange size by (10)\n\nset size to (100) %\n\nwhen I receive [run v]\nswitch costume to (costume1 v)\nshow\nforever\n    play sound [Voxel Revolution v] until done\nend\n\n@LEVEL END[RESET]\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [run v]\nswitch costume to (costume1 v)\nshow\n\n@SPIKES\n\nwhen flag clicked\nhide\n\nwhen I receive [run v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@SAWS\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        turn right (7) degrees\n        go to x: (0) y: (-20)\n    end\n    if <(costume [number v]) = [3]> then\n        turn right (7) degrees\n        go to x: (160) y: (-105)\n    end\n    if <(costume [number v]) = [4]> then\n        turn right (7) degrees\n        go to x: (50) y: (-115)\n    end\n    if <(costume [number v]) = [8]> then\n        turn right (7) degrees\n        go to x: (-100) y: (-60)\n    end\n    if <(costume [number v]) = [9]> then\n        turn right (7) degrees\n        go to x: (110) y: (80)\n    end\n    if <(costume [number v]) = [10]> then\n        point in direction (90)\n        go to x: (-100) y: (-60)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [run v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Click Green Flag [20x]\n\nwhen flag clicked\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@PLAY [CLICK]\n\nwhen this sprite clicked\nhide\nbroadcast (Run v)\n\nwhen flag clicked\ngo to x: (0) y: (200)\nwait (2) seconds\nshow\nglide (.7) secs to x: (0) y: (-10)\nwait (0.03) seconds\nglide (.04) secs to x: (0) y: (0)\n\n@thumbnail ground\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nshow\n\n@Sprite1\n\nwhen I receive [next level v]\ngo [forward v] (7) layers\nshow\nrepeat (20)\n    change x by (((0) - (x position)) / (4))\nend\nwait (0.8) seconds\nrepeat (20)\n    change x by (((-490) - (x position)) / (4))\nend\nhide\n\nwhen flag clicked\nhide\ngo to x: (-476) y: (1)\n\n