Ive moved away from scratch to use some more powerful engines but I still love coming here and learning the creative solutions you came up with to get past what I thought were the limitations of scratch. Keep up the great work!
This is even better than part 9 of the tile scrolling platformer. You actually get to learn something here and how to code this for enemy AI games instead of copying code because after a few parts of a project you start to not care so much about the code and only about the final product.
In the tile scrolling platformer, if you just copy the scripts, it's your own fault. Next time, before you do, try to understand what's happening, and teach yourself how it works.
@@trombone28 I'm saying that I try to learn something and I copy what griffpatch does. I understand what he's doing but I don't understand how the code does that sometimes. For example, part 6.
@@RedToilets I see. What you should do then is try to break apart the code into smaller pieces, and watch the video bit by bit to try and better understand how everything works together, but I get your point.
Just wanted to thank Griffpatch for getting me into coding. Two years ago, I stumbled upon Scratch and signed up for it. I began watching your videos and now I have a job for coding. I start tomorrow. This will be my first job at the age of fifteen. Without Griffpatch, I don't think I would've ever picked up an interest in coding.
I remember playing your projects roughly 6-7 years ago back when i used scratch (the golden days). Was just taken back to this by nostalgia. So glad to see youre teaching a new generation of scratchers how to block code. Godspeed
This is amazing! Griffpatch, please know how incredible your projects are, but also these video contributions to the community. I teach computer programming, and I often use Scratch for many of my students. These tutorials help me teach students some really cool tricks.
I personally don't use scratch, but this tutorial is still an amazing breakdown of how to set up a good pathfinding system. This video perfectly breaks down the essentials of pathfinding and make it easy to understand. Good job!
This is why I don’t go to other UA-cam channels for scratch tutorials because they most likely don’t work or outdated. Go to the king, he can teach you.
3D raycast with multi layering would be amazing for next tutorial, It would be hard to do for beginners,But you really know how to explain and make it look simple
I already tried it with a "controled cloning" system. That means that i have a generator and every clone has its specific number so you can add things like a x or y coordinate in a list. But pathfinding is something that i need to learn with this system.
@@rsvdark_main there are a few more scripts to put in place, but once you are comfortable using them it actually really free things up to be very cool indeed
Amazing piece of smart scripting! I used scratch a lot when I was younger, and although i don't do visual scripting that much, i still appreciate just how elegant and simple the programming was. Specially the "when not touching black" part, i love how that killed two birds with one stone.
I'm pretty amazed by the way color detection is used. Also I learned that scaling down an offscreen object wouldn't make him go onscreen again. Very smart design, even though it might create a bit too much lag in a larger scale project because of the clones being used. Also, I think you could make arrows invisible by just making them ghost 100, color detection would still work.
I don't do much programming in scratch (Only for school when we had to), but I can still use these concepts for other languages like assembly. This video is high quality right from the start and this idea is so good that I will open up scratch just to do it.
0:23 Paper Minecraft and the pathfinder are linked because they share a filling algorithm. In the game, the light source will have a "infected" tile with a light value of 5 or something. Then that tile will infect other tiles around it and subtract 1 from the parent.
I just got memories of going on scratch in awe of this guy's creations!! Honestly I remember everyone in school rushing to the computor room to play paper minecraft like it was yesterday!!
Thank you for helping me and many others understand complicated ideas with your help full videos! It really helps me and I encourage you to keep doing so, and Scratch on!
You inspire me so much, and these tutorials are SUPER helpful even if I only watch them to understand how it works!!! Keep up the good work, these are the highlights of my Mondays! :)
this is great. I have been trying to create a pac man game with ghosts for a while now but i have not figured out how until I saw this. It really helps
I can't say u are genius again, bc I already said it, but yeah I been developing with scratch for 6 years now, and I can never think about things that you've been easily doing those.
Whoa! I didn’t know you had a UA-cam! I just follow you on Scratch, that’s so cool you popped up on my recommended! You’ve inspired me for years to create games, and I think your games are the coolest!
I was actually recommended this video for no reason and then a couple days later I needed to make a project in scratch for school. It's a really neat system though, if only there was a way for the game to not render the paths and keep it on a separate non-rendered layer or something like that.
I think because the arrows are 'finding' there way through, and cant pass through the wall and as the light of the torch cant pass through opaque object, these become walls. Hence, the 'pathfinding' is the thing common to torch light and the sprites which have arrows here. (Got this answer when I had watched till 6:03)
I have an idea on Scratch AI. Basically, there is an enemy and a player. When you start the game, the AI begins it's "BeforeCurrentState" where it goes to random positions and tries to hunt you down. Once you get hunted down, the AI puts keyspots called "LastCaught". Then it begins it's "CurrentState" where it goes towards that "LastCaught" keyspot. If you are there, then the AI goes there very often between runs. If you aren't there, then the AI begins it's "BeforeCurrentState" again.
A few notes: 1. The path's up and down names are reversed, however this is visual. 2. Moving the paths will result in the pathfinders to stop pathfinding. This is hidden by deleting the pathfinders, but it can cause problems for anyone importing it into a game of theirs.
Ayy griffpatch you're still around? Back when I was using Scratch you were a legend, can't believe one of your vids randomly showed up in my recommended. Keep up the great work!
this is actually really cool. i was thinking the easiest pathfinding method would be complicated to code but you cracked it, and it works really well. you never fail to amaze me griffpatch :)
Me: Been working on Pac-Man Ghosts in Scratch
griffpatch: _Uploads Pathfinding Tutorial_
You're amazing griffpatch!
I was working on the exact same thing lmao
All of that ×2
but why?
69 like!! Lol
I was also thinking about making Pac Man
Its so cool seeing Griffpatch go from just a really good Scratcher to an awesome tutorial UA-camr
Ive moved away from scratch to use some more powerful engines but I still love coming here and learning the creative solutions you came up with to get past what I thought were the limitations of scratch. Keep up the great work!
the reason scratch cat is still smiling, is because griffpatch kept him. and fed him apples.
I have a scratch cat in some of my projects. It's sleeping
Mostly because griffpatch fed him apples.
ha ha
ye
@@peej459 definitely.
This is even better than part 9 of the tile scrolling platformer. You actually get to learn something here and how to code this for enemy AI games instead of copying code because after a few parts of a project you start to not care so much about the code and only about the final product.
In the tile scrolling platformer, if you just copy the scripts, it's your own fault. Next time, before you do, try to understand what's happening, and teach yourself how it works.
@@trombone28 I'm saying that I try to learn something and I copy what griffpatch does. I understand what he's doing but I don't understand how the code does that sometimes. For example, part 6.
@@RedToilets I see. What you should do then is try to break apart the code into smaller pieces, and watch the video bit by bit to try and better understand how everything works together, but I get your point.
HOLY MOLY IS THIS WUMPUS?!?
@@TRexgamer699 No this is patrick!
Just wanted to thank Griffpatch for getting me into coding. Two years ago, I stumbled upon Scratch and signed up for it. I began watching your videos and now I have a job for coding. I start tomorrow. This will be my first job at the age of fifteen. Without Griffpatch, I don't think I would've ever picked up an interest in coding.
Congo bro
awesome
I remember playing your projects roughly 6-7 years ago back when i used scratch (the golden days). Was just taken back to this by nostalgia. So glad to see youre teaching a new generation of scratchers how to block code. Godspeed
Cheers :) - How time flies right!
@Jonny-im4dr im 7 years late
This is amazing! Griffpatch, please know how incredible your projects are, but also these video contributions to the community. I teach computer programming, and I often use Scratch for many of my students. These tutorials help me teach students some really cool tricks.
Cool! I really love how your videos are nice and simple compared to other channels who dont explain anything.
yes! griffpatch inspired me to get into programming
actually u r kinda true tho lol bcuz they all just put the code or whatever and dont explain lol
@@cutepugjoardan and some just put text! Like what if you can't read?
@@GeometryMath3 How do you use scratch or code without reading?
@@GeometryMath3 if someone can't read than i'm not sure they can code
I personally don't use scratch, but this tutorial is still an amazing breakdown of how to set up a good pathfinding system. This video perfectly breaks down the essentials of pathfinding and make it easy to understand.
Good job!
ikr, I literally came here cuz I remembered watching this when I did use scratch and I needed a path finding method for a non scratch game!
Just as I was thinking of making a pathfinding bot in scratch.... griffpatch uploaded
Same
Same
Same
This is why I don’t go to other UA-cam channels for scratch tutorials because they most likely don’t work or outdated. Go to the king, he can teach you.
I'm gonna try to be the queen of turbowarp
3D raycast with multi layering would be amazing for next tutorial, It would be hard to do for beginners,But you really know how to explain and make it look simple
woah ur wish came true, he made a series already!
@@dimbkolnomobetter not multi layering tho
i’d say your the most calming youtuber that makes scratch tutorial
so excited to program this with lists and grids lol
Do you think you can give it a go yourself, or would you be waiting for the tutorial to cover it?
@@griffpatch A tutorial please! :D
@@griffpatch it sounds complicated, but i know you can explain it well
I already tried it with a "controled cloning" system. That means that i have a generator and every clone has its specific number so you can add things like a x or y coordinate in a list. But pathfinding is something that i need to learn with this system.
@@rsvdark_main there are a few more scripts to put in place, but once you are comfortable using them it actually really free things up to be very cool indeed
Amazing piece of smart scripting! I used scratch a lot when I was younger, and although i don't do visual scripting that much, i still appreciate just how elegant and simple the programming was. Specially the "when not touching black" part, i love how that killed two birds with one stone.
I searched for tutorials like this SO MUCH I AM SO HAPPY!
Griffpatch, you are the reason I've used to be on Scratch for my childhood. You make the best games on Scratch. Never knew you had a yt
I do!
DUDE! You have no idea how much this saved me when I was trying to design a game! TYVM!!!
I'm pretty amazed by the way color detection is used. Also I learned that scaling down an offscreen object wouldn't make him go onscreen again. Very smart design, even though it might create a bit too much lag in a larger scale project because of the clones being used.
Also, I think you could make arrows invisible by just making them ghost 100, color detection would still work.
oh! I just came back! i was with you with 20k subscribers! You have improved!
I was with him since 18k man he grew so fast
@@rsrk.2601 yeah!
I don't do much programming in scratch (Only for school when we had to), but I can still use these concepts for other languages like assembly. This video is high quality right from the start and this idea is so good that I will open up scratch just to do it.
0:23 Paper Minecraft and the pathfinder are linked because they share a filling algorithm. In the game, the light source will have a "infected" tile with a light value of 5 or something. Then that tile will infect other tiles around it and subtract 1 from the parent.
I am trying to implement the same lighting algorithm in my game, could you please explain it a bit more detailed?
I don’t even use scratch anymore but I had to watch it for my childhood thanks griffpatch
:D
22:22 That right cat just started revolution🤣
Top left as well
I just got memories of going on scratch in awe of this guy's creations!!
Honestly I remember everyone in school rushing to the computor room to play paper minecraft like it was yesterday!!
Thank you for helping me and many others understand complicated ideas with your help full videos! It really helps me and I encourage you to keep doing so, and Scratch on!
Happy to help!
@@griffpatch :D
@@griffpatch I really like your remake of Terraria. One thing that interests me is the map generation, and I would LOVE to see a tutorial on it!
I am in a tournament in scratch and I am so glad I found this chanel
(your game paper minecraft is so cool)
I like how you referred to Scratch Cat as "their", since so many people think Scratch Cat is male.
‘Her’
“They will be pleased.” Literally a second later: We need Him…
0% male
0% female
100% goober
Does it matter if we misgender a 2d cat made of pixels?
Scratchie
11:30 Finally griffparch uses caps!!!
Greetings from Italy you are the best :)
All normal Scratch blocks are lowercase though.
Videogame AI demystified by making it visible. This video is a brilliant learning tool!
Thank you, yes I did try to make is as visual as possible. I think that really helps understanding.
rarest event@@griffpatch
OMG!
Thank you!!!!!!
What a coincidence, im making a game where i need a path finding object and started yesterday and you upload this? Thanks!! 😁
YESSSSS HE POSTED
yes!!!
this is so underrated, this deserves more than a million views.
@Davyn dosent matter anyways people at the past used scratch and there was like 13m people using it
im not sure of current now
@@MuhammadTheOld right now 60 million half of as much use Facebook lol
@@wateryagarvideos5186 you can still check the most visits in scratch, im not sure of the current.
@@MuhammadTheOld ik
You are great griffpatch! You should be in the scratch team as you have answers to anything!
Agreed
You inspire me so much, and these tutorials are SUPER helpful even if I only watch them to understand how it works!!! Keep up the good work, these are the highlights of my Mondays! :)
Glad you like them!
As soon as school is over I’m going to do this is python!
*hacker typing itensifies*
OR C++ because scratch is based in the same thing
@@hadisantamaria3391 Scratch 3.0 is based on JavaScript, not C++.
@@chiroyce yeah
@@chiroyce yeah
Right now I'm watching your video and it's like the greatest thing ever!
I love your lessons, and I'm a big fan of your scratch projects. :)
Ah yes finally I can make a game which has a bot which can follow you in it. This gives me so many ideas like a horror game.
This literally warms my heart because of the nostalgia 😌
i met your channel for the first time today and it's the first time i enjoy coding
"Keep scratch cat"? Scratch cat didn't see that one coming
I usually delete scratch cat then add him back in if I need him
@@themaydayman keep him and make him slide around in the project corner at very small size! He will appreciate that.
I put this script in the Maze generating project. It worked. It's very cool.
The 1 dislike is from that person who messed up and tried again but the battery in their tablet used for UA-cam was dead
haha! 😂🤣
nah, they are the aussies that agree that Griffpatch is the true King of Scratch
Then how would he dislike the video?
@@LandonEmma he used a vpn
this is farly die best scratsch tutorial I ever saw
you say "simple programming", I say "Super complex programming that only griffpatch knew how to do until now"
but it's actually really simple!
Yep
this is simple but some of griffpatch's other vids are real complicated
like the tile scrolling one he's doing now
Yesss!!! Thanks so much griffpatch :D we've all been waiting for this!
The most convenient timing for me and a friend's game
Thank you, griffpatch! Best wishes!
Oh you are wonderful!
You are the best!!!!!!!!!
Not only that but…
You helped us become better!!
You are advanced Scratcher!
Хоть я и не могу понимать это на слух, старания и талант видны и так) Hello from Russia!
Не слишком сложный английский, но кота яблоками кормить не надо.
@@darkfrei2 ахахах
Most people think he’s feeding scratch cat apples, but I personally think that he’s feeding the apple scratch cats.
hehe!
Awesome video! sort of reminds me of the navmesh component found in unity!
I learned a new way to make sprite move. Really helped in other projects. Thank you.
Just like this other videos are amazing and interesting.
Where were all these super cool tutorials when I was young and used Scratch??
Griffpatch is a good guy he is the one who kept scratchers scratching. He is a legend
I didn't expect breadth-first search to be implemented so simply in Scratch.
IKR - I was quite pleased by how simple I got the script in the end lol
@@griffpatch at 22:20 you will notice a scratch cat at the top of the maze going somewhere else ,why is that?. is that a bug?
You are the main channel to go to when you want to learn scratch.
This is why you are the King of Scratch
thanks, this helped a lot, I made this system through lists, after your video I simplified the code by 5 times
Interview: What is your favourite tutorial you have made?
@Dhiviyesh Akilathasan it was a joke, u weren’t sapost to replie bu ok...
Logo looks by pressing space to switch costumes!!!!
Love you Henry Wolfe❤️
Love you❤️
@@belkamelka07 Do you know me from scratch?
Oh dear, this is actually what I wanted! and congrats on 1.1k likes on this video!! 😀
There are no variables for a Griffpatch tutorial! 🤣
He he - I actually purposefully did that this time - However, to make this even more useful we would start to bring them in again lol
Wow can you see the future this is exactly what I need for my new shooter.
0:01 Do I pause the video every time that I watch one to see my username? Yes 😂
Dude that is cool
this is great. I have been trying to create a pac man game with ghosts for a while now but i have not figured out how until I saw this. It really helps
he said my name so many times :0
I don’t get it. What is your name?
Dead end
I can't say u are genius again, bc I already said it, but yeah I been developing with scratch for 6 years now, and I can never think about things that you've been easily doing those.
I hope that sometime, I'll also get so many subs with scratch only
That was...AWESOME!
Oh wow, it's much easier than I thought. Great tutorial as well!
6:20 now we maked that code that will be fill
*later* omg very cool!!!!!!!!! so nice!!!!!! thank you griffpatch!!!!
Whoa! I didn’t know you had a UA-cam! I just follow you on Scratch, that’s so cool you popped up on my recommended! You’ve inspired me for years to create games, and I think your games are the coolest!
I was actually recommended this video for no reason and then a couple days later I needed to make a project in scratch for school. It's a really neat system though, if only there was a way for the game to not render the paths and keep it on a separate non-rendered layer or something like that.
I am working on those videos right now! :)
"We are going to keep scratch cat, they will be pleased" BEST SENTENCE EVER SCRATCH CAT HAS HEARD...
Oh. My. God!! Thanks so much. I’m making an interactive ant colony and I really needed this script for the ants. This is so helpful!
i have been waiting since i woke up! thanks for videos every monday!
I love the way you said smooth at 15:35
I think because the arrows are 'finding' there way through, and cant pass through the wall and as the light of the torch cant pass through opaque object, these become walls. Hence, the 'pathfinding' is the thing common to torch light and the sprites which have arrows here. (Got this answer when I had watched till 6:03)
wow I didn't know this draggable block exist
you're changing my life
Tysm for the smooth turning code!!!!!!!
I have an idea on Scratch AI.
Basically, there is an enemy and a player. When you start the game, the AI begins it's "BeforeCurrentState" where it goes to random positions and tries to hunt you down. Once you get hunted down, the AI puts keyspots called "LastCaught". Then it begins it's "CurrentState" where it goes towards that "LastCaught" keyspot. If you are there, then the AI goes there very often between runs. If you aren't there, then the AI begins it's "BeforeCurrentState" again.
Holy crap, I haven't been on Scratch in a million years! I had no idea griffpatch had a UA-cam channel, I just saw his stuff on Scratch
griffpatch you are the best tutorial teacher YOU TEACH ME BETTER AND 700% THE BEST LIKE SCRATCH TEAM TEACHING
Making awesome tutorials as usual :D
omg, i can't believe this actually got hearted by griffpatch! :DDDDDD
also, my username is RainbowCat8888
A few notes:
1. The path's up and down names are reversed, however this is visual.
2. Moving the paths will result in the pathfinders to stop pathfinding. This is hidden by deleting the pathfinders, but it can cause problems for anyone importing it into a game of theirs.
The new intro is epic, keep it up!
7:08 You can flip horizontaly
“Last one to eat the apple is a rotten egg!”
-Griffpatch
Your voice is so calming.
Ayy griffpatch you're still around? Back when I was using Scratch you were a legend, can't believe one of your vids randomly showed up in my recommended. Keep up the great work!
this is actually really cool. i was thinking the easiest pathfinding method would be complicated to code but you cracked it, and it works really well. you never fail to amaze me griffpatch :)
I like how you can easily understand those and implement them in other languages
ball physics + this = super fun video game! Thank you griffpatch!
I love how you explain your thinking
Griffpatch. An popular scratcher. Then comes griffpatch tutor. What's next? A griffpatch tests?
You can clearly see how the tutorials are getting easier to understand by every upload
I think it depends on the subject - These ones I have crafted to be as simple, yet exciting as possible :D
WOW! I can't believe it this is how easy to hide sprites that need to be used in color detection!
griffpatch strikes again... this is awesome!
wow.... i don't use Scratch any more, but this is so interesting, and your voice is so nice, that i had to watch till the end! great job!