Platformer Tutorial Part 2!!
@Stage\n\n@Slides\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [slide v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (SLIDE)\n    if <<key (space v) pressed?> or <<key (right arrow v) pressed?> or <mouse down?>>> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [slide v] to ((SLIDE) + (1))\n        switch costume to (SLIDE)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [slide v] to ((costume [number v]) - (1))\n        switch costume to (SLIDE)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    end\nend\n\n@SCRIPTS!!!!!\n\nwhen flag clicked\nReset\nset rotation style [left-right v]\nforever\n    Run Game\nend\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 <(x position) > [238]> then\n    change [level v] by (1)\n    Reset\nend\nif <touching (danger v)?> then\n    Reset\nend\n\ndefine Reset\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (0) y: (0)\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\n    switch costume to (LEVEL)\nend\n\n@NailThumb\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
This part is not as good.\n\nPART 2!!!!!!!!!!!!!!!!!!\n\nPart 1: https://scratch.mit.edu/projects/421995031/\n\nIf this hits 50 loves and favs then i will make part 3 (maybe)!\n\nClick see inside for scripts\n\n#3 now on tutorials!!\n\nIf there's a part three, there will be particles and coins and more!\n\n#TheCactusMaster #all #AltCacti #Platformer #tuorials 