Code a Platformer Game | 1. The Basics
Want to learn how to code a platformer game in Scratch? You've come to the right place! - I'm griffpatch, and I'm bringing together all I've learned about making bitmap sprite collision based platformers and I'm putting it into this brand new series. No fancy scrolling or lists this time around, just fun simple scratch coding and the good old scratch costume editor! This series is suitable for both Scratch beginners, and advanced coders alike. We are going to cover player animation, advanced wall sliding and jumping, sloping platforms with automated player foot placement, moving platforms that can push the player around, and hopefully a lot more! Let's see how things go! In this first episode we lay the groundwork and get things moving with a basic "Guy" character :D. Scratch On guys!
🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.academy 👈
😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
👀 Next Episode #2 - • Code a Platformer Game...
🐱 Starter Project Game Assets - scratch.mit.edu/projects/5605...
🐱 Scratch Studio (post project here) - scratch.mit.edu/studios/30180...
👀 Playlist for this series - • Code a Platformer Game
❤️ Scratch Addons - scratchaddons.com/
📹 Video Editing Software - techsmith.z6rjha.net/5bajbo
-------------Video Chapters-------------
0:00 Intro
2:38 backdrop
3:15 Gravity
4:33 Ground Collisions
8:46 Jumping
9:27 Walking
11:14 Rethink and Innovate!
15:24 Horizontal Collisions
17:14 Fix Jumping
18:37 Stuck to ceiling bug
19:32 Mess around with the Physics
21:43 Outro
Пікірлер: 7 000
Next Episode #2 - kzread.info/dash/bejne/eph62sOvg6ifeJs.html Starter Project Game Assets - scratch.mit.edu/projects/560596896/ Scratch Studio (post project here + get help) - scratch.mit.edu/studios/30180226/
@NemoDpro
2 жыл бұрын
Thx
@leothebudgie676
2 жыл бұрын
@@HeyEmricYT You just right click on the empty space
@jayloplayz
2 жыл бұрын
where is the cat character? u r using in the intro. Please may i have it :D
@HeyEmricYT
2 жыл бұрын
@Henry Chan Thank you, I love scratch addons
@pradeeprawal6208
2 жыл бұрын
@griffpatch can you give the link for the source code of this
Griffpatch is like that one teacher who everyone wished they had
@KurttheKing
2 жыл бұрын
Well, it's true! :)
@LeReubzRic
2 жыл бұрын
yes, i wish griffpatch was my code tutor (i dont have one)
@homie3991
2 жыл бұрын
TRUE
@Placuch0
2 жыл бұрын
Fr
@UltraDestroya48
2 жыл бұрын
True
Something I really like about these tutorials is that instead of just telling us what to do, you instead show us steps to get to that finalized mechanic. It really makes it feel like we’re learning with you and it’s unlike anything that I’ve seen (as a casual amateur scratch coder)
@nguyentram1483
2 жыл бұрын
And he explains what each script does
@blaze-the-Real
2 жыл бұрын
Thank you. Now I see what makes him stand out from the others.
@utchiha_madara2842
2 жыл бұрын
Bro how can I do an animation for my Player for goin left and going right and jump?
@Dxuser5
2 жыл бұрын
@@utchiha_madara2842 he explains that later
@ink-sane8603
2 жыл бұрын
If you want a stupidity simple way, add a point in direction (90) for right movement and point in direction (-90) for left
Not only did this legend deliver great games, he also taught us to make our own.
@Slxyer-_-hehe
5 ай бұрын
I mean you're not wrong.
@user-gq4nd9fo3w
4 ай бұрын
I agree so much!
@user-xg5hp2ck3j
2 ай бұрын
Right
@NilanjanaBhadore
Ай бұрын
right he is a legend who make games and he is satisfied with small games😃
@NilanjanaBhadore
Ай бұрын
he is you probably did not see his video😡
thank you! just made my first ever game following your advice! can't wait to see what else i can make now. ill be following along the rest of this tutorial series. id like to say thank you for going through every step and actually showing us your thought process and teaching us problem solving not just the solution.
Episode 1: Simple Platformer Episode 15: "Normal" platformer with cloud and auto-save, skin selection and great community ...
@accountdisbanded
2 жыл бұрын
Yes
@Baburun-Sama
2 жыл бұрын
Episode BUB.BOB??: Bubble Bobble-styled Platformer with Dragons and Bubbles.
@iggyzpro3996
2 жыл бұрын
Yes
@Mangsterade
2 жыл бұрын
thats just level 2
@kandykandykandykane
2 жыл бұрын
I cri | a platformer
Griffpatch: 14:04 "No looking back now" literally him 4 seconds later: "LOOKING BACK TO WHERE..."
@kathrynsullivan8024
2 жыл бұрын
Woooow
@dilig3s41
2 жыл бұрын
@@kathrynsullivan8024 CLAP CLAP CLAP CLAP CLAP
@Cray_Button
2 жыл бұрын
lol
@aanchal2357
2 жыл бұрын
@@Cray_Button I know
@Thefluffybear
5 ай бұрын
#Cod3Play Lol
You are the master of Scratch. You are using that skill to teach other young coders. I admire you.
@user-gq4nd9fo3w
4 ай бұрын
Yes
@user-gq4nd9fo3w
4 ай бұрын
I'm actually a young coder no joke 😂
@Scyr0
4 ай бұрын
God of scratch
@Mozific
4 ай бұрын
Nobody asked buddy@@user-gq4nd9fo3w
@NilanjanaBhadore
Ай бұрын
True he is a legend who also teach other scratchers😍
I've been watching your videos for a while, and everytime I wanted to make a platformer, I would watch the whole series of Code a Platformer Game. Thank you for these amazing tutorials, Griffpatch!
Dear Griffpatch! I lOVE your videos, and how you teaching us to program amazing games. I so enjoyed your videos, and it’s so fun to learn your incredible codes! P.S. This: “Hello, fellow scratchers!” melts my heart❤
@hayleycarter7737
Жыл бұрын
griffpatch=cool 😎
@ekeditz2022
11 ай бұрын
@@hayleycarter7737 SO TRUE
@TexterBox
10 ай бұрын
@@hayleycarter7737 yes, me agree
@Randonlo79
9 ай бұрын
true
@miaoxie2946
8 ай бұрын
Me too,me too
Ah this brings me some good memories from when I decided I wanted to make something more complex in scratch, proceeded by discovering griffpatch and seeing every video from the scrolling platformer series
Never would have thought I would learn how to code. Hats down to this legend.
i just realized that you can also put the jumping script in the if touching color or level it will just fall back down without all of the other time things that is really cool!
I use Scratch in my classroom, and as a relatively inexperienced Scratcher, I love this tutorial. I created a similar tutorial that covers about half this material in double the time. So thank you for organizing it in such a intuitive way!
@qwertyuiop.lkjhgfdsa
2 жыл бұрын
@Leoben Jacobs Oops! -Google Translate to English
I feel like I really got better at scratch thnx to this video, I just want to thank griffpatch for helping me become better at scratch and seeing things differently. And that to everything there can be a simple solution if your willing to find it, thank you so much.
I love how you explained everything this just made my project for school feel so much easier!
This is the first time I actually understood how to make collision in Scratch. I have tried a lot of tutorials but this one makes the most sense. Thx for making this ur awesome griffpatch.
@10carries
Жыл бұрын
@Luke Johnson what do you need help with?
Griffpatch, your amazing. You are the most followed scratcher on scratch, and the best scratcher ever in my opinion. Not only that, but I believe you are also the best teacher on scratch as well. That is *extremely* rare to have someone the best at something also be the best teach of it. Because of this, you are able to bring up any level of scratcher higher in their knowledge of scratch. Your amazing Griffpatch, so keep using your gift for God! I think that's so cool that you play the drums for your church!!
@amtulj5284
2 жыл бұрын
I agreeeeeeeeeeeeeeeeee
@scratchtv123
2 жыл бұрын
correct
@ahmedelmakki2757
2 жыл бұрын
true, keep using your gift for god griffpatch, i guess?
@nguyendoany6.161
2 жыл бұрын
I think Will_Wam is amazing scratcher too. And I agree Griffpatch is amazing scratcher, good teacher and most followed scratcher
@tuanhungnguyen4343
2 жыл бұрын
Appel was his best game ever
Griffpatch is my favorite teacher, with a game like this and some other tutorials like main menu's make this game so much more exciting!
Griffpatch is a great teacher! I am trying to make my platformer somewhat like the bouce series on scratch, and he really shows how you can tweak the game to do what you want to do!
the fact that a couple months ago i needed the whole list of tutorials but now only need a refresh for physics and implemented an undertale fight to this game needing only like 10 minutes of this and 1 minute of the fight tutorial is insane, thanks griffpatch
@griffpatch
Жыл бұрын
My pleasure, great work!
@IcyParkiet
Жыл бұрын
@@griffpatch i dont know if you have, but a tutorial on undertale fights would be very interesting, especially when combining it with this
@conroysmith3348
3 ай бұрын
😊@@griffpatch
This is the best scratch tutorial I have ever seen yet, I've been following you for a while so keep the great work up!
Hey griffpatch, just wanna say thx SO MUCH for how well you explained this. You are so great. Keep it up!!!
Fabulous work, Griff!
13:51 I was just about to check your code for collision detection while i was working on another game, but when you said to rethink and innovate, i just made my own script and IT WORKS!!!!!
@thomasemanuelgomes4934
16 күн бұрын
can u say
"hello fellow scratchers" never gets old edit: oh cool im famous
@ActuallyHyperionOS
2 жыл бұрын
Yes
@icydragon3874
2 жыл бұрын
It NEVER gets old, not even a little
@mariofan1983
2 жыл бұрын
It reminds me of "Hello, this is YOUR daily dose of internet"
@paderhoot6835
2 жыл бұрын
So true
@juliantello5740
2 жыл бұрын
YEP YOU HAVE REASON
keep up the great work all of your games are so cool!
Most excited to learn about how to make my character move and how to make them interact with the environment
I acknowledge you for using a moment to produce the video! I've stayed on Scratch for years. Nevertheless, I don't understand how to execute a Scratch platformer; this enhanced my Scratch programming. I'm exceptionally delighted to view Part 2's video!
griff is the best teacher ever and when i tried to ask my friend how to make platformer my friend just said random concept that i never understood but griff is very easy to understand
This was so fun to make and I loved how you described everything!🎮
Great Video as Always! Keep it Up
It’s like learning from an online lesson, the steps are clear and very detailed. New sub ❤ you’re a legend.
@albertoedgar831
Жыл бұрын
online lesson aint like that
Even tho this is a scratch video, it is still great to see that the way griffpatch explains things, you can interpret it in other languages
Griff is the master of anything. Thanks for this video.
i like the sticking to the ceiling as a thing where you hold on to the ceiling
This was one of the best and most interesting tutorial I have ever seen! Your explanation and code is very neat too. Thank you Griffpatch!
I tried using this when I started scratch, and it seemed so hard, but now, I come back and it is so easy to do this, great tutorial!
@dagamer667_
Жыл бұрын
What's your scratch username? I would like to see one of your levels.
@1mah0td0g
Жыл бұрын
@@dagamer667_ Ikeahotdog
@dagamer667_
Жыл бұрын
@@1mah0td0g lol, alr
I love this series
This is a banger!!!!!
Hey, Griffpatch I love your tutorial because the walking and jumping work way better than all of my projects and I probably will keep using that for my other projects!
@griffpatch
2 жыл бұрын
Glad I could help!
@icebergs9691
2 жыл бұрын
Yeah Same
@utchiha_madara2842
2 жыл бұрын
@@griffpatch Bro how can I do an animation for my Player for goin left and going right and jump?
@fastkiwi9646
Жыл бұрын
Make separate costumes, then make the sprite shuffle through them in order
@LilDogeSmall2450
Жыл бұрын
always🙂
I loved the way he explained all the things in this video. Thankyou for such a good video!
Its cool when griffpatch can teach us how to do everything thats possible in scratch
This tutorial has helped me so much, and it's explained so well!
*Coding* Expectation: We'll name the costume 'Player Asset 1.0' Reality: Let's christen him 'Guy'
@digidesigningwithanant677
2 жыл бұрын
lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol
Thank you for spicing up my year Grifpatch!😀
griffpatch is so good at explaining and it's more fun than the other tutorials!
Legend I came back to this after a few months when the last time it didn’t work for me today it worked fine thanks for the help
griffpatch knows how to make a simple tutorial video entertaining! Keep it up griffpatch!!
@thebegdyt
Жыл бұрын
Ya!
Your scratch videos are good because they explain everything clearly and tell you how they work.I love your videos.
Wow!!! Griffpatch really does have a good coding sense!
Thanks! Griffpatch, I tried to make platformers before, but I didn't know how to make, until I came through this series!
Thank you! This really helped me so much! You are an awesome scratcher, keep it up!
Griffpatch : Let's cover simple Scratch Platform Physics! Me : Gulp.... I am forgetful...... Me : It's not simple for me ..... Griffpatch : Let's cover everything! Me : Woohoo!
@darkscratcher52
2 жыл бұрын
🍋
@unnofrancoc.deleon6502
2 жыл бұрын
Oh cool you pressed the JOIN button next to the SUBSCRIBE button
@veto_real
2 жыл бұрын
🐱
@jeditz8
2 жыл бұрын
@@unnofrancoc.deleon6502 yeah it includes thesee
what a useful tutorial! thanks for making this
i love this i love you griffpatch.
the jump function, gravity function and the collision is really useful
i really love this platformer (and the movement of the player is ace!)
Im most exited to learn about the movement
Griffpatch, there is no better scratch youtuber better than you. Keep up the amazing work 😸
I do have some problems with character animations so I’m pretty exited to learn that.
griffpatch you the best teacher a dude could ever wish for thanks man!
I spent 2 hours working on this and my character is swimming in the floor
@Catmeowfs
3 ай бұрын
Ok
@denizesmerf4
3 ай бұрын
Same!
@m4shermanfan225
3 ай бұрын
Skill issue?
@vinatreivi4152
2 ай бұрын
My character has the ability to fly and teleport idk why😐
@Irenti
Ай бұрын
Gravity is wrong then@@vinatreivi4152
Griffpatch is the mumbo jumbo of scratch
@Jayviolikesspyro
Жыл бұрын
Yeah
@TheDefaultYoutuber51313
6 ай бұрын
Yeah that's true!!
@DeezyPlays2029
5 ай бұрын
Yes
@jasmineks4702
3 ай бұрын
😂😂
@DarkKnight_Combat
3 ай бұрын
Fr
Since your reading this, I just wanted to say thanks for reading your viewers comments, but also for the amazing tutorial! The collision system worked perfectly with my top down scroller of all things. Keep up the good work! 👍 😀
im exited about me making the map and colors!
he is the legend we have all been looking for
The quality of your tutorials, the editing and all of that, exceeds that of most scratch tutorials on youtube. Keep up the good work griffpatch!
@aynurny
Жыл бұрын
I love Griffpatch! And thank you for this nice tutorial!
griffpatch you're a great teacher btw I was most excited to learn about wall jumping :)
THIS HELPED ME SO MUCH TYYYY
griffpatch i love your tutorials they always help everyone
Wow, I tried making a platformer and started with basic color recognition. But quickly ran into problems like passing through barriers that you shouldn't be able to pass through. Then I watched this video and BAM! This just made my day in how interesting scratch can be. Thanks!
I haven't been on Scratch for a long time and I NEED to learn this.😸
This is my second time watching this tutorial series and I still enjoy it. Great job!
GREAT tutorial. Best I have come across, your step by step guide is perfect. Clean and easy to follow. Well done Griffpatch.
@kellyaamir5194
7 ай бұрын
Yes
Love your work!
the amount of times i need to stop the vid for this nika is a lot
This is so helpful thank you so much
I had a few issues (Just me making mistakes like changing the y by x speed/steps), but all of them are fixed now! Thank you for this amazing tutorial, I have wanted to know how to make a platformer game for ages and I love your games! Keep up the amazing work, everything about this video is amazing!
@JackassJackett
Жыл бұрын
i'm encountering the same issue, can you please explain how you fixed it?
@Koelkast24
10 ай бұрын
@@JackassJackett I had the same issue but I know how to fix it. You need to put a 'change x by 0' block in 'repeat until not touching (color)' in define fix overlap. Let me know if this helped you
I'm late to watching these, but the inclusion of Coyote Jumping mechanics in SCRATCH is some serious quality I wasn't expecting to see, frickin' crazy job as always.
It is looking great
Thanks, this has helped me a lot
Thanks Griffpatch for the videos, I really like how you make me understand the blocks😎😎
Thanks for all of these tutorials!
THIS VIDEO WAS VERY HELPFUL THANKS SO MUCH
i'm excited to learn how to implement slopes
I’m bout to use this for my own little platformer Thanks for the tutorial! Wouldn’t have found this out without you :)
@ezriha
10 ай бұрын
Hows it going? Got a link?
Thank you very much for this tutorial! It helped me a lot making platformer games!😃
Thank you so much griffpatch thanks too you my video game got me in my schools media arts club! your the best!!!
thank you really helped me with my Undertale blue soul mode griffpatch.
I just started my intro into computer science class and we have 4 labs using scratch, although it's not going to delve deep into programming since its a intro class, I really enjoyed and appreciated how thorough you made this video in terms of explanation for someone like me who is just beginning. Thanks!
@griffpatch
2 жыл бұрын
My pleasure
@bayarearob
2 жыл бұрын
Hi Tyler, I teach CS for k-12 and wanted to know if you could share the grade you taking this CS class in? Also are you working out of CS first or something more advanced?
@tylerphillips4467
2 жыл бұрын
@@bayarearob I’m actually studying CS for the first time in college
@bayarearob
2 жыл бұрын
@@tylerphillips4467 awesome! Could share any of the curriculum or resources they use? I have a bunch of advanced 12th grade students that could benefit
The amazing thing about these tutorials is that you don’t have to follow them EXACTLY when coding. You just have to get the general concept right which he tells you.
@bloonsfamily2066
2 жыл бұрын
yeah, one of the few tutorials where after them i was making my own stuff somewhat differently than the tutorial
great vid making a platformer right now listening to this
this tutorial is so amazing it inspired me to create a 3d platformer
Thank you so much for making this series. I really wanted to make my own platformer game and this helped me a lot. You're pretty much the teacher I want.
@fnbn2102
Жыл бұрын
YES
@ArethaN.A
Жыл бұрын
*YES*
@localjedi7125
10 ай бұрын
YES
griffpatch is like that cool person who only comes into work once a week and tells everyone the answers.
i never thought i would watch a tutorial by the legend himself!
this is so good that i'm about to drop actual coding and switch to scratch.
Thank you so much! I've been struggling with platforms until I saw this video, It was a big help! Keep on scratching, griff!