Code a Platformer Game | 2. Next Level

preview_player
Показать описание
How to Code a Platformer Game in Scratch Code Blocks with griffpatch. Part 2 of this tutorial covers moving back and forward between level scenes, or to the next level. Also we switch to using Sprite Sensing instead of Color Sensing for much more colorful levels! Lastly we fix the common bug of getting stuck in the ground when changing level - super! My tutorials are for all budding game & software developers, so Scratch On!

🚀 *Boost Your Creativity with Griffpatch*
The Griffpatch Academy will take you from "Gamer to Game Creator"

--------------Video Chapters--------------
0:00 Intro
0:58 The Problem with Multicoloured Levels
3:02 Change from Backdrop to a Level Sprite
5:27 Consolidate Touching Scripts
7:28 Organise our code
11:50 Change of Scene – A Multi-screen level
15:40 Moving off the Edge of the Screen
18:57 Getting Stuck in the Level
20:40 Preventing collision bugs
25:22 Getting Un-Stuck
28:50 Bad Level Design
30:01 Outro
Рекомендации по теме
Комментарии
Автор

Me: looks away for 1 second.
Griffpatch: Made the rest of the game.

semajnz
Автор

One thing to note if you are having problems The Level sprite must have a 'clear' transparent background, no filled background behind the player. If you want a background behind the player, this must remain in the stage backdrop.
ALSO - If the player is not moving off screen, try reducing the "IF x position > 235" to something just a little less until it works (Try > 230)

griffpatch
Автор

This channel is amazing! You explain it in a simple way and are enthusiastic about it.

great job :)

da_monke_guy
Автор

Me: can’t even make a button
Griffpatch: Come. This is no place to die

toothpaint
Автор

The one time griffpatch told us to NOT click "run without screen refresh"! Love ya griffpatch.

marquis
Автор

I am a new scratcher. Just started following you, and I don't regret it. You explain things in a way that's easy to understand This is my 1st series following to you. And BELIVE Me it's awsome

Izzushaanuyuhaa
Автор

I ♥ scratch! It's the best coding thing out there for beginners and I am so glad you are making tutorials for us (the viewers). I have been on scratch for over a year, and I have never heard of the techniques you use. Thank you!

redwoodsteve
Автор

Im so happy that this channel exists!
You are a real Scratch GENIUS

mrfqgcb
Автор

20:00 "Ohhho no! Disaster!"
Made my day :D

lasercatto
Автор

What better way to celebrate my birthday is to lie down and watch some more awesome griffpatch vids

TamZzoST
Автор

Hi Griffpatch, Thank you so much for these amazing tutorials!!
My son(8) and I (30s) are having a great time learning and making this!

timandjoshbricks
Автор

I love these tutorials! I love how you showed your tip on how to flip it; without making it go on side and not on the edge! Best tip!

VBrick
Автор

OGs will remember the old scrolling platform tutorial

stevethepuppet
Автор

Normally I sleep on these videos, but your voice is so entertaining that I watch you often! :D

prohakerofficial
Автор

I missed your high-quality tutorials. These feel like they could air on TV with how professional they are! Good work!

waleedalshammari
Автор

out of all you're serieses, this motivates me to do scratch the most

TETNTM
Автор

The way i did it was using the touching color blocks is easy because my blocks had a black outline so i could make it all kinds of different colors, plus the outline makes it POP out.

gamergirlxdgames
Автор

30:05 you can make an if statement to detect if the scene variable is more then our max scene or less then our min scene

k-a-t_
Автор

Hello, Griffpatch I just wanted to thank you for the tutorial it helped me a lot the only thing that I am thinking is that like the way you teach nobody else can copy that
that was some amazing teaching, thanks again

ataharkhan
Автор

13:13 Fun fact: Instead of having to select everything using Ctrl + A (Cmd + A for Mac) then flipping it horizontally/vertically, if you flip a costume/backdrop horizontally/vertically without selecting ANYTHING at all, it flips the whole costume/backdrop horizontally/vertically! Same when you delete stuff from the costume/backdrop without selecting anything (it deletes everything in the costume/backdrop but not the costume/backdrop itself)!

ShehzaibIsALegend