Platformer Tutorial || THE BASICS                                                 #games #music #art
@Stage\n\nwhen flag clicked\nstart sound [MENU THEME v]\n\nwhen I receive [message 1 v]\nstop all sounds\nforever\n    play sound [Cloud 9 v] until done\n    wait (1) seconds\n    play sound [Robot  v] until done\nend\n\n@Tutorial  || Player\n\nwhen I receive [next level v]\ngo to x: (-200) y: (101)\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\ngo to x: (-200) y: (101)\nshow\n\nwhen I receive [message 1 v]\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n        switch costume to (costume2 v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#2a2e45)?> then\n        change y by (1)\n        if <touching color (#2a2e45)?> then\n            change y by (1)\n            if <touching color (#2a2e45)?> then\n                change y by (1)\n                if <touching color (#2a2e45)?> then\n                    change y by (1)\n                    if <touching color (#2a2e45)?> then\n                        change y by (1)\n                        if <touching color (#2a2e45)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                set [yv v] to [10]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#2a2e45)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#2a2e45)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (101)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (101)\n    end\n    if <touching color (#b25151)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (-10)\n        set [ghost v] effect to (0)\n        start sound [Oopsy.. v]\n    end\n    if <touching color (#a68383)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#2d5c5c)?> then\n        set [xv v] to [21]\n    end\nend\n\nif <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    change [xv v] by (-1)\n    switch costume to (costume2 v)\nend\nif <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    change [xv v] by (1)\n    switch costume to (costume1 v)\nend\n\n@ Tutorial || Levels\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\nshow\n\n@Title\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (0) y: (-100)\nforever\n    set [brightness v] effect to (0)\n    change y by ([cos v] of (title y) )\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-15)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (costume3 v)\n        broadcast (Message 1 v)\n        delete this clone\n    end\nend\n\nwhen I receive [message 1 v]\ngo to [front v] layer\nhide\n\nwhen I receive [menu v]\nshow\nwait (.3) seconds\ncreate clone of (_myself_ v)\ngo to [front v] layer\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (100)\ncreate clone of (_myself_ v)\nforever\n    change [title y v] by (6.5)\n    change y by ([cos v] of (title y) )\nend\n\n@Tutorial  || Thumbnail2\n\nwhen flag clicked\nforever\n    show\n    switch costume to (costume1 v)\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    set size to (100) %\nend\n\n
[⇓READ ALL OF THIS!⇓]\nHey everyone! Since lots of people have requested this I decided to create one for all of you out there, that want to make platformers!\n\nLook inside this project to see the code and tips in the coding of making a platformer! :D\n\nBy far the easiest way to create a decent platformer! =)\n\nYour Final product should finish off like this: https://scratch.mit.edu/projects/396127671/\n\nIf you need any help comment on my profile questions and I will answer them as soon as I can! :D\n\nThis tutorial is strictly the basics of making a platformer!\nIf you want to create epic stuff, then you'll have to wait for part two! I know all of you want to create stuff like this - https://scratch.mit.edu/projects/426349955/ but you have to wait! :D\n\nMake your version different than mine! Change the character and level designs! (If your want)\nShare your finished platformers in the comments! :D\n\nYou don't have to give credit if you don't want to :D\n\n#STH #STP\n\n-yotacopaco out-\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n3k followers!! :D