Code a Platformer Game | 6. Vertical Levels
ฝัง
- เผยแพร่เมื่อ 3 ส.ค. 2024
- Continue to build our Scratch Platformer, adding vertical scene changes to make your levels larger and multi-dimensional! 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. My tutorials are for all budding game & software developers using Code Blocks. 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
🐱 Starter Project Game Assets - scratch.mit.edu/projects/5605...
🐱 Scratch Studio (post project here) - scratch.mit.edu/studios/30391...
👀 Next Episode #7 - • Code a Platformer Game...
👀 First Episode - • Code a Platformer Game...
👀 Playlist - • Code a Platformer Game
❤️ Scratch Addons - scratchaddons.com/
📹 Video Editing Software - techsmith.z6rjha.net/5bajbo
-------------Video Chapters-------------
0:00 Intro
0:39 Vertical Level Costumes
2:02 Switching Vertical Scenes
6:10 Testing
6:41 Up and Across
8:12 One last thing
10:09 Scratchers
17:50 Outro
Next Episode #7 - th-cam.com/video/bMZmDVCookw/w-d-xo.html
First Episode - th-cam.com/video/D16hTnDGweo/w-d-xo.html
Playlist - th-cam.com/play/PLy4zsTUHwGJIATydhFeZa5pspLZR7yE__.html
Hello Griffpatch, love your videos!
Same here
hello griffpatch! Could you please make a tutorial video on how to make the levels scroll with the player instead of changing when reaching the edge of the screen? would love that! thx
Griffpatch: *posts a video on a non monday day*
Me: *confused screaming*
Griffpatch must be the only youtuber that does tutorials and doesn't make me bored, due to the fact that the video itself is full of easter eggs like lemons or apells. It just makes me wanna actually watch him, continue your amazing work man :)
Almost top comment, 11 likes, one year since posted and no comments?! Let me fix that. Also I agree lol
true, Griif's tutorials are the best. Totally Scratch's God
Bug report- If a platform on another scene is taller than the one, you're going to, your able to possibly jump higher than the stage. This also allows players to wall jump on higher walls that are not meant for such. Thanks! 😃
You managed to make this tutorial series a nostalgic throwback but with better code
Awesome episode, I absolutely loved the showcase at the end, that was sooo wholesome, hope you do more things like that!!
Wow! I am excited
griffpatch - no "please like and subscribe" no boring sponsors so i subscribed
Yes! What I’ve been waiting for all week!
Your tutorials are so helpful, thank you so much :)
I loved Griffpatch's reaction on the third project review
At what time ?
@@hellohello-ei4gi From 12:30 to 13:37
john png
@@LYB4 ?
@@johnpn6747 pn with a g batch
This is perfect, I already have a platforming engine I made before you started this series but I'm definitely using your method to transition between levels. Thanks griffpatch!
Oh my god! I was waiting for the vertical scene changing tutorial so badly lol. Thank you so much. Great tutorial as always!!!
You are so welcome!
For moving platforms you can just make them glide to a set position like: Glide 3 secs to x:135 y: 35 and then glide to x:-50 y: 35 (also make them go to x -50 and y 35 when the game starts)
But maybe griffpatch does it differently
@@griffpatch Wait… *WHA-*
I haven't had time to put the last two parts into effect yet, but just by watching these, I learn so many little details that help with programming in general. In previous attempts, I had always made vertical screen transitions based on increments or decrements of 10-- but this limited how wide I could make areas. Seeing you make it based on 100s' is such a natural solution that I just never considered.
hehe - Yes, that can be the case! I miss things all the time that seem obvious later on!
Hey griffpatch, i really like your projects and tutorials they are verry well made and easy to do
same here!
And if you need any free music to get you started, my full video game catalog is freely available on my about page, over 100 songs! Just credit where applicable and song link in Yt video descriptions, cheers!
Thanks
lol I started following your this platformer tutorial like 10 hrs before and now finally I am done! Thanks Griffpatch for tutorial!
Great to hear!
This is mind-blowing!
Those projects are well made. Props to all scratchers 😁
I was excited for this! ⭐
I can’t believe how good this man is a scratch. Seriously. He made a water and sand sandbox.
wasand
If you can't get your character to change the scene, make sure to find out if its y value peaks at 180 for your hitbox
Very good advice!
@@griffpatch Thank you! Your videos are cool and help me understand more of Scratch as I work on my games :D
yes! that what happened to me! thx!
Will there be a part 7?
Yes my character was not changing the scene but when I changed the Y value of the sprite and it worked !!
Im sure that the scratcher who made the projects he was showcasing in this video were really happy when they saw them in this video :D
Thank you griffpatch this tutorial really helped me!
I enjoyed the video!! this tutorial grows very fast!!
Thank you so much this was so helpful you are one of the first scratch tutorials that's helpful
hi griffpatch, i just wanna say that i started scratch again becuz of you and you just like your games r epic :)
I´ve just love your tutorials!!!!
I haven’t watched it yet, but I know this will be an exciting episode!
I really liked how you did the x and y shifting between scenes! I instead just changed x to the current x position. Same with y. When I made the vertical scene changes, I also wanted to add a map, so now the scene variable changes by 24 if you go up or down.
For the map I used a grid list, much like from your video on it.
The only reason I did not change to the current x and y is so that I could easily tell which direction to do the collision fixes in when the scene changes... left to right or up and down...
nice video! when i found your channel i improved a lot at scratching!
Great video and explanations as usual. The best scratch youtuber of the World !
Another great video as always! Also I saw your about page and I did not realise until now that I could link my scratch account to my about page
Just what I needed today
Griffpatch: Showcases Projects
Me:Focus on Message count
**Is no one onna talk bout it***
Your tutorials have taght me A LOT about Scratch! Tysm! :))))
You're very welcome!
Yes
Most of the time I smile at work cuz of your help and I find it funny that sometimes I make a mistake because of using wrong block😂
ITS AMAZING
I LOVE IT
I AM WAITING FOR E7
I get i’m like, 2 years late, but if you don’t want to find out the limits of your hitbox’s y value ( or if you don’t have a hitbox ) like i did, use 4 different sprites, and put them at the edges of the screen, one for the left edge, one for the bottom edge, one for the top edge, and one for the right edge.
ok you can leave now
this guy is the
the griff of patch
I'd love to see another episode of this adding new types of enemies. I know it isnt all that interesting, but it would add more variety to the game and add more life to it.
this is what i say... if they repeat step by step, and making own level with science 1-inf.
Great job everyone)))
00:10:28
hold up, i just forgot have a "copy project" makes alot of easier...
Thx for putting my idea!
Amazing! I love this! Thank you so much, your video's are lovely!
Glad you like them!
@@griffpatch Hey I made a video on your tile scrolling platformer: th-cam.com/video/LIEPn53uijE/w-d-xo.html
Hope you like it
Awesome! ❤️ Keep up the good work! 🙂
nightmare before Christmas, great film!
12:51 i absolutely love griffpatch screaming "NOOOOOOOOOOOOOOO"
I WAS WAITING OMG
I see it. this platformer tutorial WILL BE A WHOLE SERIES
I have more clever and cool scene change metod: replace scene# variable with 2 independent variables scene y# and scene x#. First scene will be at x0 y0. That way we could add infinite amount of scenes(make sure to name them correctly).
Loved the vid!
It's awesome!
LOVE this channel =D keep it up!
Amazing Work
Thank You!!!! You're letting me understand games better.
Same
Yay finally a new platformer tutorial
this is so helpful for more customization options
Yeah :) I wanted to add this way back in episode 2, but it would have made the video just a little too long
thanks for nice tutorials!!!😁😁😁
I love the thunbail of this video ✨
THIS IS RLLY COOL
I LOVE IT!!!!
In programming the platformer I started a couple years ago, I used a "stageX" and "stageY" variable as well as a map variable that's them joined together with a comma for separation. I think it might end up making some things trickier to program.
I think yours is better than griffpatch's
That is a fine way to do the job, the only reason I go for a single number is that it makes coding up other things to appear on a scene just a little easier as you only need one number to compare. Otherwise you either need to do the join each time, or compare x & y scene number, etc...
@@Taro-yt4tk switching to it yolo
@@griffpatch Can you make it includ the stageX and stageY for e7?
@@griffpatch can you help me, im following the tutorial but for some reason when going up a slope on going the right i cant go up but it works fine when going left
This helped me so much to make a secret shortcut! Cool😎
i didnt actually expect this to be 18 minutes. this is really cool
It's only really a 10 minute video - the end is me taking a look at other scratcher's projects :D - But I have a follow up video that I may post mid week (which is why I made a short one this time to get it out on a saturday)
@@griffpatch oh
@@griffpatch do you know how i could add a skid animation just before scratch cats switches to his stand costume? i have tried but nothing seems to work
Everyone did great awesome!
Completed my coding class 1 hr ago...Nice tut btw
Thanks, really helped.
0:19
griffpatch: Multi-Dimensional Levels
Me: Then where's the 3rd dimension?
can you do a badges / achievements tutorial?
keep up the great work griffpatch 👍
also just want to say that this video is amazing keep on posting! and one question, how are u so good at scratch?
Your amazing bro
This is epic
I love your scracth games they are amazing
My favorite game you made is appel
scracth lol
Is Griffpatch going to upload on weekends now? Anyways, the tutorial is amazing! I love it! :D
Yes
Now there are mix-it-up-weekend
by far the shortest tutorial griffpatch has made
Was two in a week to compensate :)
A true legend on scratch community
Can't wait to do this!
(My version was extremely scuffed lmao)
Great !
Wow griffpatch you have sooo many notifications in Scratch! :0
Same amazing tutorial
11:24 I thought your tutor account had a lot of messages. But this, is a ton lot! 1 MILLON! Good job!
Yeah lol
You are the best scratcher.
Thanks so much
wow cool and thx :D
great brilliant cool . I am eagerly waiting for part 7
Coming soon
@@griffpatch yay
This guy is the best
Can I make a suggestion? Instead of just an immediate swap transition to the next part of the level, I think it would be kind of neat for a project to introduce a smooth, scroll like screen transition between each section.
Maybe that's a little too advanced, or perhaps I am just getting too far ahead? I don't know. Though I did enjoy him struggling with his own level at 6:15. That was great!
Great video as usual! :)
The mecodetwo level where he says this reminds me of the movie the movie is the Night Before Christmas!
Thank so much
17:48 Gives me an idea that you get a key and you go to the other direction to get the door :O
Saturday video, never expected that
Cant wait for the moving platforms
THIS MANS HAS 1 MILLION NOFTIFICATIONS!
I love Griffpatch
Awesome video 🤩 look for all your others videos ✨
thank you!
You're welcome!
OMG :000 13:40 That's me :D Tks for review my project :D
YES! I LOVED THE BUNNY COSTUMES!!! and the level's were super good looking, well done!
@@griffpatch TYSM ^.^
Thank You Grifftpatch I will do my best to fix it
When I made a platformer like this, I didn't use that kind of system for the levels. I had 2 variables, 'level x' and 'level y', and those 2 variables joined together forms a costume name in the ground sprite, and when the player touched the edges, those 2 variables were modified to change the costume of the ground sprite.
The fact that the level's costumes name doesn't have a "_" dividing the word from the number... FILLS YOU WITH AGONY (jk lmao)
You are free to add it lol
@griffpatch ik lmao, just commenting something
Your tutorials get better by approximately... ∞ per video!
(also to type the infinity symbol, hold alt on keyboard, and press 2 3 6 on keypad.)
∞
It works!
Everybody gangsta until he opens up an episode 6 project
it's great to add a level