Code a Platformer Game | 1. The Basics
HTML-код
- Опубликовано: 14 июл 2024
- 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
Next Episode #2 - ruclips.net/video/HdFxavSE9H8/видео.html
Starter Project Game Assets - scratch.mit.edu/projects/560596896/
Scratch Studio (post project here + get help) - scratch.mit.edu/studios/30180226/
Thx
@@HeyEmricYT You just right click on the empty space
where is the cat character? u r using in the intro. Please may i have it :D
@Henry Chan Thank you, I love scratch addons
@griffpatch can you give the link for the source code of this
Griffpatch is like that one teacher who everyone wished they had
Well, it's true! :)
yes, i wish griffpatch was my code tutor (i dont have one)
TRUE
Fr
True
Episode 1: Simple Platformer
Episode 15: "Normal" platformer with cloud and auto-save, skin selection and great community ...
Yes
Episode BUB.BOB??: Bubble Bobble-styled Platformer with Dragons and Bubbles.
Yes
thats just level 2
I cri | a platformer
Not only did this legend deliver great games, he also taught us to make our own.
I mean you're not wrong.
I agree so much!
Right
right he is a legend who make games and he is satisfied with small games😃
he is you probably did not see his video😡
You are the master of Scratch. You are using that skill to teach other young coders. I admire you.
Yes
I'm actually a young coder no joke 😂
God of scratch
Nobody asked buddy@@user-gq4nd9fo3w
True he is a legend who also teach other scratchers😍
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)
And he explains what each script does
Thank you. Now I see what makes him stand out from the others.
Bro how can I do an animation for my Player for goin left and going right and jump?
@@utchiha_madara2842 he explains that later
If you want a stupidity simple way, add a point in direction (90) for right movement and point in direction (-90) for left
Griffpatch:
14:04
"No looking back now"
literally him 4 seconds later:
"LOOKING BACK TO WHERE..."
Woooow
@@kathrynsullivan8024 CLAP CLAP CLAP CLAP CLAP
lol
@@Cray_Button I know
#Cod3Play
Lol
I spent 2 hours working on this and my character is swimming in the floor
Ok
Same!
Skill issue?
My character has the ability to fly and teleport idk why😐
Gravity is wrong then@@vinatreivi4152
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.
Im making my game now
"hello fellow scratchers"
never gets old
edit: oh cool im famous
Yes
It NEVER gets old, not even a little
It reminds me of "Hello, this is YOUR daily dose of internet"
So true
YEP YOU HAVE REASON
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!!
I agreeeeeeeeeeeeeeeeee
correct
true, keep using your gift for god griffpatch, i guess?
I think Will_Wam is amazing scratcher too. And I agree Griffpatch is amazing scratcher, good teacher and most followed scratcher
Appel was his best game ever
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!
Never would have thought I would learn how to code. Hats down to this legend.
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❤
griffpatch=cool 😎
@@hayleycarter7737 SO TRUE
@@hayleycarter7737 yes, me agree
true
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
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 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.
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
My pleasure, great work!
@@griffpatch i dont know if you have, but a tutorial on undertale fights would be very interesting, especially when combining it with this
😊@@griffpatch
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!
@Leoben Jacobs
Oops!
-Google Translate to English
Hey griffpatch, just wanna say thx SO MUCH for how well you explained this. You are so great. Keep it up!!!
I love how you explained everything this just made my project for school feel so much easier!
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!
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!!!!!
can u say
This was so fun to make and I loved how you described everything!🎮
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!
*Coding*
Expectation:
We'll name the costume 'Player Asset 1.0'
Reality:
Let's christen him 'Guy'
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
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!
🍋
Oh cool you pressed the JOIN button next to the SUBSCRIBE button
🐱
@@unnofrancoc.deleon6502 yeah it includes thesee
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!
keep up the great work all of your games are so cool!
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
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!
Fabulous work, Griff!
This tutorial has helped me so much, and it's explained so well!
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.
@Luke Johnson what do you need help with?
Griffpatch is the mumbo jumbo of scratch
Yeah
Yeah that's true!!
Yes
😂😂
Fr
Most excited to learn about how to make my character move and how to make them interact with the environment
what a useful tutorial! thanks for making this
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!
It’s like learning from an online lesson, the steps are clear and very detailed.
New sub ❤ you’re a legend.
online lesson aint like that
griffpatch is so good at explaining and it's more fun than the other tutorials!
Great Video as Always! Keep it Up
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
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.
yeah, one of the few tutorials where after them i was making my own stuff somewhat differently than the tutorial
griffpatch you're a great teacher btw I was most excited to learn about wall jumping
:)
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!
What's your scratch username? I would like to see one of your levels.
@@dagamer667_ Ikeahotdog
@@1mah0td0g lol, alr
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!
Griff is the master of anything. Thanks for this video.
This is my second time watching this tutorial series and I still enjoy it. Great job!
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!
Thank you! This really helped me so much! You are an awesome scratcher, keep it up!
THIS HELPED ME SO MUCH TYYYY
griffpatch knows how to make a simple tutorial video entertaining! Keep it up griffpatch!!
Ya!
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!
Glad I could help!
Yeah Same
@@griffpatch Bro how can I do an animation for my Player for goin left and going right and jump?
Make separate costumes, then make the sprite shuffle through them in order
always🙂
i love this i love you griffpatch.
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! 👍 😀
Griffpatch, there is no better scratch youtuber better than you. Keep up the amazing work 😸
Thanks! Griffpatch, I tried to make platformers before, but I didn't know how to make, until I came through this series!
Awesome Tutorial! I love platformer games and now, I get to make my own!😊
I loved the way he explained all the things in this video. Thankyou for such a good video!
Your scratch videos are good because they explain everything clearly and tell you how they work.I love your videos.
griffpatch you the best teacher a dude could ever wish for thanks man!
This is so helpful thank you so much
griffpatch is like that cool person who only comes into work once a week and tells everyone the answers.
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.
Wow!!! Griffpatch really does have a good coding sense!
Another note: the Falling variable can also allow you to hold the jump button to jump higher until it reaches the coyote-jump limit
thats cool, i never thought about that.
GREAT tutorial. Best I have come across, your step by step guide is perfect. Clean and easy to follow. Well done Griffpatch.
Yes
2:29 PURPLE GUYYYY
The man behind the coding
Thanks, this has helped me a lot
I love this series
Thank you for spicing up my year Grifpatch!😀
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!
i'm encountering the same issue, can you please explain how you fixed it?
@@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 NEEDED THIS
I haven't been on Scratch for a long time and I NEED to learn this.😸
the jump function, gravity function and the collision is really useful
3:10 wow that's simple
Me : Draws super intense course
Thank you so much griffpatch thanks too you my video game got me in my schools media arts club! your the best!!!
THIS VIDEO WAS VERY HELPFUL THANKS SO MUCH
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.
YES
*YES*
YES
Thanks Griffpatch for the videos, I really like how you make me understand the blocks😎😎
i like the sticking to the ceiling as a thing where you hold on to the ceiling
Learning this will be fun
Griffpatch: Let's make 3D game with realistic physics!
Scratch Trending: We Warship gEnErIc pLaTfOrMeRs
Griffpatch: This is my most generic platformer : *insert completed game*
Scratch News: Least generic platformer on scratch trending by Griffpatch!
I do have some problems with character animations so I’m pretty exited to learn that.
I feel like him, knowing what most of this code means, and ive used most of this code, but even as a 2 year old scratcher that was self taught, I still learned stuff, thanks!
It is looking great
Thank you so much man! I want to be a coder when im older and i want to start the basics and in school we are learing how to use scratch and how to use variables! After a few lessons i will be the boss!:) Amazing work im deffo checking out the next part
Glad I could help!
im watching this for fun
I love Griffpatch! And thank you for this nice tutorial!
griffpatch is my go to youtuber for creating games i have a group with my friends at school and we use my account on scratch and we create and remix games thx for everything griffpatch
he is the legend we have all been looking for
i really love this platformer (and the movement of the player is ace!)
Thank you so much! I've been struggling with platforms until I saw this video, It was a big help! Keep on scratching, griff!
im exited about me making the map and colors!
This is a banger!!!!!
After I watched this video, my plans of making my video on making platformers on scratch is now ruined. This should be the engine that everyone should be using, The only detailed 'How to make a platformer' video. Nice Job Griffpatch!
There's never enough videos on this subject :) - It can be so varied, and there's so many things to consider... the more the merrier :D
@Leoben Jacobs ??
@Leoben Jacobs ???
@Leoben Jacobs what do you mean?
@@roboboy3773 Dont question it man
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!
My pleasure
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?
@@bayarearob I’m actually studying CS for the first time in college
@@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 amount of times i need to stop the vid for this nika is a lot
Im most exited to learn about the movement
Thank you very much for this tutorial! It helped me a lot making platformer games!😃
I’m bout to use this for my own little platformer
Thanks for the tutorial! Wouldn’t have found this out without you :)
Hows it going? Got a link?