Code a Platformer Game | 4. Slopes & Limb Posing

preview_player
Показать описание
Code slope detection, handle walking up and down inclines and even advanced foot placement and character posing to best match the slope they are standing on. Continue to Code a Platformer Game in Scratch Code Blocks with Griffpatch. My tutorials are free for all budding game & software developers, but if you can, please consider joining the membership to help support this channel - Thank you, and Scratch On!

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

--------------Video Chapters--------------
0:00 Intro
1:04 Adding Slopes to the Level
2:22 Walking up a slope
4:51 Resistance to running up a slope
6:16 Moving down steep inclines
8:40 Slip down steep inclines
13:27 Standing on a slope – Hitbox2
16:11 Auto Levelling feet on slopes
22:19 Outro
Рекомендации по теме
Комментарии
Автор

“…or even blue hedgehogs, ” as a sonic fan i approve this statement

GavinArtster
Автор

16:49 "and even blue hedgehogs" As a Sonic fan I can confirm that Sonic sure rotates himself in a slope.

PLUSHIE_WORLDOFFICIAL
Автор

Hi griffpatch, I don’t know if you’ll see this but I discovered your channel the other day and this series has literally inspired me to start coding in scratch again despite not touching it in years, thank you! 👍

corundum
Автор

Thank you so much!It's is verry good

icecats
Автор

my brain's just sponging up all this information to be regurgitated later and the feeling's great

owohub
Автор

I love how scratch cat responds with a "meow"

DuckWasNotAvailable
Автор

21:55
Griffpatch: Let's set the size back to 40.
Also Griffpatch:*sets size to 60*

ilcp
Автор

Finnaly I have been waiting for this moment

AdityaBhuyanHub
Автор

Keep it up next one please be moving platforms

annihilate
Автор

My Scratch Cat is getting stuck halfway up the slope when going up, and has to jump to get over some sort of invisible platform in the slope.

Rocketwestrock
Автор

21:52 “let me shrink him down to 40”
*shrinks him down to 60*
“Great”

midiinstrumentals
Автор

Griffpatch in a nutshell:

Hello, fellow Scratchers, I’m Griffpatch!
Yay!
Make a new variable, for this sprite only, and call it “dir”
Make a new custom block, and be sure to *not* tick Run without screen refre- wait what?!
*chuckles* Haha
Oh gosh
Oh yes!
This is really cool.
Insane debugging skills
Look for the custom block named “Tick”
Super!
Make sure to add a “stop this script” button.
Seriously cool!
Unfortunately, this episode has come to an end, but stay tuned for next time where we build better things than all of our existing projects combined!

niceguy
Автор

“Hello fellow scratchers” nothing more iconic than that

willy
Автор

Griffpatch: Let me shrink it down a touch, back to 40.
Also Griffpatch: *sets the size to 60*

UltraDestroya
Автор

When I hear "Let's get scratching!", I know we're going to do something amazing.

prohakerofficial
Автор

IMPORTANT!!! On coding the Animations - Stand pose on Slopes/flat tiles

On it you should Copy and Paste/ Replicate the exact order as in the video

Stand Hitbox 0-4 Should be After the Standing poses Replicate everything in order as it is n the video ( 14:21 ) From Sprite 1 to the final number ( depending how much you have done sprites for more customization

Reason being? You Could get in trouble with *wrong poses* while *standing*
i got this issue
tried to replicate the same code again checking that everything was same
the problem was that the Stand Hitboxes were in the wrong order and the Pose sprites too

to counter this Make sure to have it in the dedicated order as in the video or you May find some trouble

i even added Blank sprites for wall slide/wall pose

Stay scratching everyone ;)

brunoob-
Автор

1:03 His name isn’t Scratchy, his name is just Scratch. Last name Cat. If Scratchy is a nickname, you should’ve been more specific about that

jdh
Автор

Another wonderful tutorial! Hope this has the same effect on Scratch projects as the ball physics tutorial did back then :)

lakyk
Автор

I remember failing my project back a few months ago, I didn't saved them as copies cause I didn't know that existed, now I'm back on top, finally conquering this episode! I've never felt more relived

NowoX
Автор

So this is the guy who made all those games I played at recess.

yoshi_