Sky - A Platformer
@Stage\n\n@Player\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (2)\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground 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 v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground 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        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground 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 v)?>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\nif <not <(level) = [4]>> then\n    if <(x position) > [239]> then\n        broadcast (nl v)\n    end\nend\nif <(y position) < [-178]> then\n    broadcast (reset v)\nend\n\nwhen flag clicked\ngo to x: (-187) y: (39)\nset [speed x v] to [0]\nset [speed y v] to [0]\nforever\n    Run Game\nend\n\nwhen I receive [nl v]\nbroadcast (reset v)\n\nwhen I receive [reset v]\ngo to x: (-187) y: (39)\nset [speed x v] to [0]\nset [speed y v] to [0]\n\n@Ground\n\nwhen I receive [nl v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    set [level v] to (costume [number v])\nend\n\n@TN\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Clouds\n\nwhen flag clicked\nforever\n    wait (0.05) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (240) y: (pick random (-200) to (200))\nsize hack (pick random (50) to (150))\nset [ghost v] effect to (pick random (0) to (99))\nrepeat until <(x position) < [-239]>\n    change x by (((size) / (15)) * (-1))\nend\ndelete this clone\n\ndefine size hack (size)\nswitch costume to (costume2 v)\nset size to (size) %\nswitch costume to (costume1 v)\n\n
Welcome To Sky A Platformer!\n\nThere Are Only 4 Levels But I Will Add More Soon!\nSay In The Comments What I Should Add!!\n\nPart 2: https://scratch.mit.edu/projects/497588322/