Collision Pins? 💥📌 Now that's clever! 🐱 Scratch RPG #7
Collision Pins are an excitingly easy solution to the complex problem of collision detection in tile based games with tiles of different shapes. In this episode of the Scratch RPG tutorial coding series we look at how this works, how we can store the collision "metadata" in lists, and how to extend out level editor to include the editing of the collison pin meta data itself to speed things up!
Let's learn to code in Scratch with Griffpatch - Create your own fun Scratch game with these step by step instructions with friendly explanations.
🚀 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
👀 Episodes in the series:
Ep.1 - Craft your dream Scratch Game - • RPG Tutorial | Craft y...
Ep.2 - Infinite Scrolling & Tiles - • 🐱 Infinite Scrolling &...
Ep.3 - I AM SPEED - • ⚠️ LAG FREE Scrolling ...
Ep.4 - Build a LEVEL EDITOR in Scratch - • Code a LEVEL EDITOR in...
Ep.5 - Split Screen & Multi Tile Assets - • EDIT FASTER ⚡ Tile Tra...
Ep.6 - Layers & Onion Skinning - • LAYERS 🧅 "Onion Skinni...
Ep.7 - Collisions Pins - • Collision Pins? 💥📌 Now...
Ep.8 - Player Collisions - • Player Collisions + Wa...
🐱 Scratch Starter Projects with Assets - Remix this!
scratch.mit.edu/projects/7255...
🐱 Scratch Studio for Your projects
scratch.mit.edu/studios/32038...
-------------Video Chapters-------------
0:00 Intro
2:05 The Tile Collision List
3:15 Toggle Palette Metadata editor
4:22 Painting a Collision Pin
6:27 Expanding to 9 pins per tile costume
8:44 Defining a Collision Pin String
12:05 Drawing from the TILE PIN List
13:30 Toggling Collision Pins right in the editor
15:51 Populate the TILE PINS list ready for updating
17:13 Changing one letter of a value in a variable
18:04 Splitting a string into a list of letters
19:46 Converting a list back to a single value - A clever trick
20:29 Changing one letter of a value in a variable
22:18 Testing that all out
23:26 Fixing Duplicate Key binding
24:14 Defining the collision pins - Outro
Пікірлер: 781
Congrats on 200 (and 1)k subs! You deserve it. I'm in fifth grade and My coding classes are way too easy because of you (lol). By the way I have had th badge for a while but I started watching your videos a few years ago and i have watched them all. (Idk why you would pin heart and comment on this but why not?)
@griffpatch
Жыл бұрын
I'm so pleased that my videos have been able to inspire and help so many :) it's my honour to share what I can - Scratch on!
@AidanGamesYT
Жыл бұрын
oh lol I'm in 5th grade and 2nd just a normal day donating grifpatch 4 dollars and a thanks by a gift card
@theaangelavalencia547
Жыл бұрын
@@griffpatch hey griff, I am a scratcher for 1 year and in your platformer game i was so happy to code it! Thank you for your good tutorials!
@ianfarquharson2933
Жыл бұрын
with a scratcher like griffpatch, scratch has never been so easy to learn, fun, and advnaced, geat work everybody, and scratch on!
@Me-Ist-Smort
Жыл бұрын
@@griffpatch You actually pined hearted and commented on this?!
This man has taught me more about coding than a class ever could, and I give you my respect for that. A legend in the Scratch community.
You are the Best, Griffpatch
@MinkuMilo
Жыл бұрын
He is the only griffpatch
@griffpatch
Жыл бұрын
I am the griffpatch lol :D
@ValidityValue
Жыл бұрын
@@griffpatch your videos are best)
@zecrok3000
Жыл бұрын
I forgot ","
@Richard_Nixon-mr6rq
Жыл бұрын
@@griffpatch I’ve always been jealous of your name, I have trouble finding a good name that hasn’t been taken, This current name was a joke but it’s better than the one Ive had since 2011😂
The pin editor is really impressive, wow. I've played a lot of your stuff but I think that might be the most clever thing I've seen yet.
Congrats on 200K btw!
@cutensouthern2482
Жыл бұрын
Congratulations Griffpatch!
@vozifyvr
Жыл бұрын
just realized he collision pinned my comment.
@MoreThanJustGabe
Жыл бұрын
true member
@dr.shadow_reaper
Жыл бұрын
i want those emogis too how did u got them?
@dr.shadow_reaper
Жыл бұрын
congrats griffpatch 200K SUBSCRIBERS!!!!
griffpatch has gained more than a hundred thousand subscribers in such a short time. we wait until the number of subscribers on KZread becomes more than on scratch
@griffpatch
Жыл бұрын
That would be interesting :D - Is it even possible?
@loler3379
Жыл бұрын
@@griffpatch I scratch 2021
@aryanryan3960
Жыл бұрын
that would be the best day of the scratch master!
@EndaWida
Жыл бұрын
@@griffpatch i guess
@ramiostudios111
Жыл бұрын
:P anything for you griffpatch
Wow, Scratch has really come quite a ways since I used to use it ten years ago or so... custom blocks look great. Back when I was using it anything at all complex needed to be 1s1s or else it'd lag like crazy... looks like that's probably not really a thing anymore haha. I can't even imagine trying to do stuff like this with 1s1s. I crashed it enough without that hahaha Your channel is super cool, I love that kids new to programming are able to watch these videos and learn about all these advanced techniques and ways of thinking about problems and stuff. It's great stuff! I can't wait to see what the next generation of Scratchers end up achieving when they inevitably grow out of Scratch like I did, with the massive head start they're getting. Super exciting!
things the scared me before griffpatch 1 custume blocks 2 lists 3 some math blocks 4 colshions of any thing 5 too many variables
@Stunt7
Жыл бұрын
Oh, same 😅
Congrats on 200k griffpatch! I was here since about 87k! It’s so nice to see that your channel is growing! :D
this makes scratch so understandable to make, i still remember trying the makey makey extension and trying it at school it was tough to do because i didnt know its not the point but, im saying that youtube has tutorials everywhere and its great to see someone teaching a coding platform instead of someone making one
Griff I cant put it into words how hard you must work to achieve all of this. I have been following along and I have messed up a couple of times but I didn't give up because if you gave up and did not try and try you would not be here right now. Keep up the great work man. :)
Clever indeed! Every time a watch a Griffpatch video, I learn more than I think I do. I said this before and I will say it again: Scratch really is advancing! Congrats on 200K btw!
Let’s gooooooo 🎉🎉 Edit: features we still need: Auto tile layering Full screen editing Actual tile collisions Green and blue pins Dialogue boxes and npcs Attack animation
@griffpatch
Жыл бұрын
IKR! We have so much to cover still!
@shark-vf3pv
Жыл бұрын
@@griffpatch the series will probably need to be 10-15 episodes long
@jan_sipiki
Жыл бұрын
@@griffpatch dont forget the inside of houses
@yamaya3429
Жыл бұрын
I feel like some of those things have been covered in other videos on this channel
@KaffeMedBulla
Жыл бұрын
@@jan_sipiki true
You’re finally back
@laurenzotter7212
Жыл бұрын
You’re finally back
@piercegaming1993
Жыл бұрын
Let’s go
19:17 Griffpatch teaching us kingergarten maths
I love how you teach us ways to improve even little things we were used to. Like at 19:04, you optimized that common script even more, by not creating another variable. Just wow. Edit: To answer the question you asked on the next part of that timestamp, yea I already know that list variables can also be used like that.
200K! Congrats! Your videos are nice and good! Love you griffpratch
200k Congrats. You've been inspiring me on scratch since day one!
@griffpatch
Жыл бұрын
So cool - Thx for that!
Since you've always been the best and will continue to be, the community has been motivated to learn how to code by watching the amazing things you can accomplish using Scratch. You should have at least 500,000 subscribers. 👍😃
200K CONGRATS!! Good job on all the hard work you’ve done to get here!
@griffpatch
Жыл бұрын
Thank u!
Griffpat thanks so much for being the best teacher ever! I got an A+ on my project and everybody loved it. Keep up the good work
HUGE thanks to griffpatch as he creates tutorials for us
So cool! I was wondering how we were going to do collisions, and this seems so creative! Now, until the next episode comes out, maybe I can see if I can adapt some of your other existing tutorials into languages like JavaScript. Might be an interesting experience.
Congrats on 200k! Great content maker and And AMAZING workl👏 👌
Congratulations on 200k. I love your videos. Can't wait for the next Episode of these series!
@griffpatch
Жыл бұрын
Glad you like them! - Next one is going to be great!!!
Yes griffpatch, that is indeed clever. I tried implementing a collision system in my own RPG game however this will far exceed it. Great work on the 200k ^w^
This is so clever! Also the amount you know about Scratch is amazing!
otherwise, apart from this little problem that I don't understand, your videos are great and I love continuing to make this type of video because you are the boss of coding so thank you to you
Congratulations on 200k subs, griffpatch! Keep going! I love your tutorials!!!! BTW: Loving this series! 🐱
@griffpatch
Жыл бұрын
Thanks so much!
@yutubeuser7578
Жыл бұрын
@@griffpatchYou are like a role model to me to work on scratch. Thanks for the reply and heart!
Congratulations! on 200k Great job on the rpg series!
@griffpatch
Жыл бұрын
Appreciated JeGenius
honestly this is clever even outside scratch. these are awesome tricks you'd see in old school games
I was always thinking of making an RPG game. Griffpatch you make dreams true.
This series went to an ok moving platform and basic scratch coding, TALK ABOUT NOW... THERES SO MUCH COOOL FEATURES !!!
this completely blows my mind. everytime i think "this is definitely NOT possible on scratch", somebody just does the thing. at this point scratch's only limit are clone amount and resolution (which is kinda fixable with turbowarp?)
You are literally impressing my friends and me too this was my dream RPG thank you so much!
@griffpatch
Жыл бұрын
Glad I could help!
and also, congrats of getting 200k subs!!! What a great milestone achieved by the legendary scratcher, and youtuber... Griffpatch!!!
Here are some suggestions for what to add next (an expanded version of my previous comment): - Enemies and collectables - An inventory - Collision detection (duh) - Shops - Full screen editing - Doorways and interiors
Congratulations!!! For 200k subs and also thank you for part 7 . we will always support you for your epic tutorials.
@griffpatch
Жыл бұрын
Thank you too!
CONGRATS ON 200K!!! WOOOOOOO also you should add dialouges in ep10 and npcs in ep9
Something I wanna mention regarding the "set pin (pin #) tile (tile #) to (value)" custom block is that for whatever reason if you use an operators block for the value input (even if it ends up still being one letter) it will break the whole function by causing the split reporter to return with spaces instead of as one number as you'd expect. This *really* tripped me up when trying to make it a toggle instead of needing to press 2 different buttons.
This is just amazing! Also, congratulations on 200K!
@griffpatch
Жыл бұрын
Thank you so much!!
Your tutorials are VERY GOOD! ❤
Congratulations on gaining 200k subscribers Griffpatch! I owe you so much for stirring up my lemon mind with scratchy tutorials! ❤❤❤
@griffpatch
Жыл бұрын
Glad you like them!
@Muzammil_Ali_Asan
Жыл бұрын
@@griffpatch Like them? I love them!
Yay! Finally there is collision. You make the best tutorials!!!
@griffpatch
Жыл бұрын
Glad you like them! - And more to come on this!
@bamboubose
Жыл бұрын
JUSSY
Hey griffpatch! I made my pin collision scripts 4X4 for better collision but i am afraid that it will cause some lag I remembered about rendering only the part of the map that we are at but im not so sure how to implement this at the pins I think that a video about that would make the project run a lot smoother Thank you for this series, Griffpatch You are the best🎉🎉🎉 Edit: congrats on 200k!
I am glad that new map was pointed out at 13:57 on the last episode I got unwanted grid list items so I cleared it and thought the project was ruined but I thought new map could fix it and it did : )
@griffpatch
Жыл бұрын
Excellent :) I was worried about that!
wow, this tutorial is beeing amazing. Idk if you will add thes, but enemys and NPCs will be great sometime in future tutorials.
LETS GO!!! SO EXCITEDI spent all of my monthly allowance on this membership! But its so good!
@griffpatch
Жыл бұрын
Wow - I hope you enjoy it! :D
@vozifyvr
Жыл бұрын
@@griffpatch I already do! Thanks for everything you do! 🌟
Good job on the RPG tutorials :D I have a suggestion though, what if you wanted to make it so you can't go through an object on one side, but you can on the other side? Would be useful if you wanted to be able to fall off hills in your RPG game.
19:58 Wow, Griffpatch actually found a use for those list blocks! I don't think I have ever used list blocks in my entire Scratching career!
I set the enable pin to Z instead of 1 before you even mentioned that it toggled the layer because: 1. It toggles layer 2. its closer to X
@peejoegaming2660
Жыл бұрын
C, D and S are all close to Z. (Keyboard version) And do you mean the keyboard or the alphabetical order???
MAN i was waiting for this! PS- Congrats on 200K!
@griffpatch
Жыл бұрын
Thanks a ton
Amazing. Now we only need to save the level for later, and reload it when we need it, and adding multiple maps.
Awesome video! I have a question though: Do you voiceover your videos after recording? If so, how do you add in the mouse clicking sound effect/audio? It's really satisfying :)
wow congrats on 200k last time i saw it was like 120k keep up with your good work griffpatch
Pinning this episode on the todo list! Very cool list manipulation :D
@griffpatch
Жыл бұрын
Thank you :D - I do love a bit of list manipulation!
Your videos are so inspiring and are key to being an awesome scratcher!! Please200K! Awesome work Griffpatch! Your videos are so inspiring and are key to being an awesome scratcher!! Please keep up with the work 🙏🙏 keep up with the work 🙏🙏
@griffpatch
Жыл бұрын
Thank you! Will do!
@Metromex_386
Жыл бұрын
@@griffpatch Finally you have replied!! YES!
You should totally do a devlog series on unity or unreal engine. Your scratch viewers would love to see someone they look up make a real game, and see how you solve certain issues!
Woooooo I'm early today! So cool how you're always finding unique ways to accomplish simple tasks in the best ways.
@griffpatch
Жыл бұрын
Always fun right
Congrats on 200k!
I never knew that little trick! I love it.
ty for your vids i made lemonoids and the hit box one already
Thanks for the video, and congrats for the 200k! 🥳 Actually, i have a question. Do you have a fixed date for all your videos? Love your videos, keep up the good work!
@griffpatch
Жыл бұрын
Not completely fixed, but I am trying to publish at 12:00 UTC each Saturday at present - Thursday for early access...
@jurreverbruggen8542
Жыл бұрын
Okay! I will have my notifications on! 😉
This series was very helpful but can you make a tutorial on how to add Enemies to the game? (also congratulations on the 200k milestone )
Really great work Griffpatch!
@griffpatch
Жыл бұрын
Thanks a ton!
congrats on 200k subs your channel is growing sooo fast
I WAS REFRESHING THIS FOR MINUTES BECAUSE IM SO EXCITED GRIFFPATCH
@griffpatch
Жыл бұрын
Yay! So glad you are here :D
15:14 "And we can script this baby up" :D
Yes! I actually have my PC today! Thank you SOOO much griffpatch
Congratulations! You already have 200K subscribers!
@griffpatch
Жыл бұрын
🎉
Thanks for the vid. Could you maybe too a troubleshoot / common error video? Things such as forgetting to tick without screen refresh etc
Finally, I have been so excited to do collisions !
@griffpatch
Жыл бұрын
This is part 1 of collisions, the next one will add the actual collisions for the player!!!
@darkergen
Жыл бұрын
I can't wait for it then!
@Nukemplaze
Жыл бұрын
@@griffpatch plz do it this week ive been waiting its super cool i like this rpg
I would love to see this in the tile scrolling platformer tutorial
Congrats on 200k!!
@griffpatch
Жыл бұрын
Thanks a lot :D
Hey Griffpatch, I don't know if this is something you've already planned or not, but I would love to see a tutorial on how to have animated stamped tiles. Seems like it could be hard but would look awesome.
are the effects an overlay, or are they built into the editing software you use?
THIS IS AWESOME!!! THANKS FOR THIS!
Congrats on 200k griffpatch
Hello I am french and I watch your videos, there are so cool, you teach very well, when we have a scratch french teacher like you ?😁
How awesome genius coding! I love this channel
@griffpatch
Жыл бұрын
Happy to hear that!
Yooooo Congrats on 200k subs
i love this griffpatch so much i wish he was real :(
@griffpatch
Жыл бұрын
Ummmm... I am definitely real lol
@normal6961
Жыл бұрын
me too😭😭
The variable clicking was really new to me
Congrats for 200k!!
@griffpatch
Жыл бұрын
Thx!
griffpatch: releases a new tutorial video everyone: OOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!
Could you do this in tile scrolling? Also the stuff you do is amazing!
Congratulations on 200k. You're so cool!!!
@griffpatch
Жыл бұрын
Thank you!!
Great job Griffpatch.
Griffpatch I have a question on 20:02 couldn't you have done repeat 9 then add 0 to split please let me know.
Lets go griffpatch congrats on 200k subs!
Very big congrats 🎉🥳 u are the best scratcher griffpatch
thank you for this video and congrats on 200K!!! 😄
Congrats on 200K Subscribers!!! 🥳🥳🥳🎉🎉🎉 hope you will reach 1M Subs soon!😍
@griffpatch
Жыл бұрын
Thank you so much 😀
Congrats on getting to 200k subs!
@griffpatch
Жыл бұрын
Thank you so much 😀
I AM SUBSCRIBED AND CONGRATS ON 200K 🎊
@griffpatch
Жыл бұрын
Thank you!
This is a very good scratch tutorial, and one thing, i think that the green and blue pins are the order, one color of pin is infront of the player and the other behind the player
Yay! Griffpatch does it again!
@griffpatch
Жыл бұрын
Yay!
wow your channel grows twice as fast as before
Hello THanks for The TUtorials :D
@griffpatch
Жыл бұрын
Welcome!
Another episode please!😁