Code a Platformer Game | 1. The Basics
HTML-код
- Опубликовано: 11 июн 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
@@HeyEmric_Official 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
PLZ HELLP ME WHEN I PUT IN THE AB S OF SPEED C + ABS OF SPEED Y IT MAKES IT WHEN I CLICK THE LEFT KEY IT GOES DOWN WHEN I CLICK THE UP KEY IT JUMPS
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
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.
Never would have thought I would learn how to code. Hats down to this legend.
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!!!!!
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?
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
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!
"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
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
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!
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.
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 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!
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
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
Hey griffpatch, just wanna say thx SO MUCH for how well you explained this. You are so great. Keep it up!!!
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
Griffpatch is the mumbo jumbo of scratch
Yeah
Yeah that's true!!
Yes
😂😂
Fr
This was so fun to make and I loved how you described everything!🎮
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!
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
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
This is my second time watching this tutorial series and I still enjoy it. Great job!
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!
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
i like the sticking to the ceiling as a thing where you hold on to the ceiling
Griff is the master of anything. Thanks for this video.
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!
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
Thanks! Griffpatch, I tried to make platformers before, but I didn't know how to make, until I came through this series!
*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
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
keep up the great work all of your games are so cool!
You did this a long time ago in your scrolling platformer tutorial. You can remove {if } You can also put set speed y to 0 in the repeat until block. No need to overcomplicate things 😊
he literally does everything you ask for in the second tutorial lol
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!
the jump function, gravity function and the collision is really useful
Its cool when griffpatch can teach us how to do everything thats possible in scratch
griffpatch is so good at explaining and it's more fun than the other tutorials!
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🙂
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!
griffpatch you the best teacher a dude could ever wish for thanks man!
This guy is the god of scratch bow down to him
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!
griffpatch knows how to make a simple tutorial video entertaining! Keep it up griffpatch!!
Ya!
i had just come to see how to do variables but instead learnt some much more, thank you griffpatch
Hey Grifftpatch! I’m trying to figure out how to make it so each “screen” scrolls, sort of like a metroidvania? Do you have any tips?
Thank you! This really helped me so much! You are an awesome scratcher, keep it up!
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 you're a great teacher btw I was most excited to learn about wall jumping
:)
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!
I do have some problems with character animations so I’m pretty exited to learn that.
Your scratch videos are good because they explain everything clearly and tell you how they work.I love your videos.
Since Griffpatch is here I can make games! He is the BEST tutor ever!
Fabulous work, Griff!
I loved the way he explained all the things in this video. Thankyou for such a good video!
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
Wow!!! Griffpatch really does have a good coding sense!
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
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, there is no better scratch youtuber better than you. Keep up the amazing work 😸
nothing compares with doing something wrong then getting it right cuz listening to griffpatch
I haven't been on Scratch for a long time and I NEED to learn this.😸
GREAT tutorial. Best I have come across, your step by step guide is perfect. Clean and easy to follow. Well done Griffpatch.
Yes
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
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
10:43 I'm saving this time for Monday when I start watching again.
i found a lot of knowledge and fun from watching and making this its insane how hard it is checking through every bit and piece of code to make sure it works but it is very satisfying at the end i have an account for any curious people my first game being:unhealthy cat dies my account is biggiechezz griffpatch you are more than legendary
Nothing to say.
Started scratch last month and my project is +10000%.
Best scratch teacher!!!
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
This tutorial has helped me so much, and it's explained so well!
20:38 melted my heart
12
Thank you for spicing up my year Grifpatch!😀
i really love this platformer (and the movement of the player is ace!)
Making a cool math game thing! Needed some physics, and this worked so well! Thank you!
True
this tutorial is so amazing it inspired me to create a 3d platformer
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
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.
Thank you! I'm making a game series called "METER!" This was a good help with the movement and physics.
Tbh i kinda liked how the player glided back up when it hit the ground. It satisfied me.
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?
Thanks Griffpatch for the videos, I really like how you make me understand the blocks😎😎
Thanks Griffpatch this was extremely helpful!
ruclips.net/user/sgaming/emoji/7ff574f2/emoji_u2626.png
thank you really helped me with my Undertale blue soul mode griffpatch.
Thank you so much! I've been struggling with platforms until I saw this video, It was a big help! Keep on scratching, griff!
3:10 wow that's simple
Me : Draws super intense course
THIS VIDEO WAS VERY HELPFUL THANKS SO MUCH
I made the player blink every once in a while by making a when green flag clicked, forever, if pick random 1 to 100 = 1 then, switch costume to Mid, wait 0.05 seconds, switch costume to closed, wait 0.1 seconds, switch costume to mid, wait 0.05 seconds, switch costume to open. Outside of the if loop, I put wait 0.05. Seconds. Also, if you make his eyes closer together it will make him look cartoonish and cute. If you make him look ALMOST cross eyed, it makes him look even better!
Watching this on my phone right now at night and I can’t wait to go to my laptop tomorrow and start coding this, I’ve even started animating so I can make Custom animations for my Player
Superb!
griffpatch i love your tutorials they always help everyone
4:56
lets drop in a stop all block,
6:48
"WE DONT NEED THE STOP ALL BLOCK ANYMO-
he is the legend we have all been looking for
Whoa!This will make my game 10,000x times better!Thank You so much for this series :O
Which game
@@prozayk5908 My upcoming games lol
@@monkeycomet have you made any games yet
@@prozayk5908 Yes...I have a Scratch account with the name of @jramcomet
@@monkeycomet I followed you 😑