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.
@@rubenvanderark4960 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
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!
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
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.
This is why I don’t go to other RUclips channels for scratch tutorials because they most likely don’t work or outdated. Go to the king, he can teach you.
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'm reaching the 300 clone limit before it can find scratch cat at 6:36 edit: i fixed it, the problem was it was overlapping clones in top of each over quickly going to the clone limit
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!
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.
Another trick to hide sprites while maintaining the collisions: set ghost effect to 100. Btw, this pathfinding (or light flow ;D) method is called flood fill, right?
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.
Griffpatch, is there a thumbnail glitch on scratch for you? (When you want to save the thumbnail as something but it doesn't save.) Its happening for me :(
Im making a fnaf arcade game, where you play as purple guy on a 2d screen while freddy, bonnie, chica and foxy are chasing you, this was REALLY usefull
Good, now do one that will handle diagonals and multiple walled routes using a grid of squares a certain size (to make it simple, because I have no idea how I'll program circular walls) and a character with some circular/ -elliptic*- hitbox and some velocity. Which doesn't rely on processor-draining Scratch-only features, but rather on maths so I can replicate it in any programming language I want. (saw this kind of pathfinding in an unreal engine game) *Actually I think a turning character with multiple dimensions would be unnecessary. Also it's no good if you love the comment and don't really do anything about it soooooooyeah -imanidiot-
Hey if you can reply to me please do cause I copied the draggable apple script entirely but it is still not working :( it is only working once I place the apple back down if I drag it in mid air the arrows are staying the same
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!
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.
Awesome video! Did not expect this type of video since i consider pathfinding being advanced. I like how simple and short the solution was, but i would not have found it myself. This was some sort of reverse flood fill?
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
17:18 I had a bug in my code that made everything move like a escalator lol 18:41 it looks like the apple is eating the cats in stead of the cats eating the apple
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.
One little question: Actually i am working on a "open world" game. That means i have a Player always in the center and by clicking the keys i only change a "x" and "y" variable that moves other projects except my player. How can i add a pathfinding function for something enemies? Thats quite a bit more difficult... Thanks for this tutorial 😁
You should put the word "Scratch" in the titles of your tutorials more often, as doing so will give your videos a higher chance to get recommended to people that watch other Scratch videos.
Question: Can this be reused for the tile scrolling platformer? I want to add some sort of flying enemy but It's hard to add the collisions and make the enemy not get stuck on walls Or at least to be able to edit this code to work with the tiles in the other program
My one wasn't working at the start and I figured out the problem. The problem was that my clones were going underneath eachother, quickly exceeding the clone limit. I fixed this my making it place a clone if not touching edge or color purple (which was the color of my arrow)
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
@@peej10do91 definitely.
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
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.
@@rubenvanderark4960 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
Its so cool seeing Griffpatch go from just a really good Scratcher to an awesome tutorial RUclipsr
Just as I was thinking of making a pathfinding bot in scratch.... griffpatch uploaded
Same
Same
Same
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!
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
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
"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.
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
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!
This is why I don’t go to other RUclips 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
I searched for tutorials like this SO MUCH I AM SO HAPPY!
he said my name so many times :0
I don’t get it. What is your name?
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
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 don’t even use scratch anymore but I had to watch it for my childhood thanks griffpatch
:D
The 1 dislike is from that person who messed up and tried again but the battery in their tablet used for RUclips 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
DUDE! You have no idea how much this saved me when I was trying to design a game! TYVM!!!
i’d say your the most calming youtuber that makes scratch tutorial
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'm reaching the 300 clone limit before it can find scratch cat at 6:36
edit: i fixed it, the problem was it was overlapping clones in top of each over quickly going to the clone limit
YESSSSS HE POSTED
yes!!!
Most people think he’s feeding scratch cat apples, but I personally think that he’s feeding the apple scratch cats.
hehe!
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?
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!
I hope that sometime, I'll also get so many subs with scratch only
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
Where were all these super cool tutorials when I was young and used Scratch??
I love your lessons, and I'm a big fan of your scratch projects. :)
Awesome video! sort of reminds me of the navmesh component found in unity!
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 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
I think he's a boy personally, since his name is Scratch, and he's orange, but yeah whatever.
Does it matter if we misgender a 2d cat made of pixels?
Another trick to hide sprites while maintaining the collisions: set ghost effect to 100. Btw, this pathfinding (or light flow ;D) method is called flood fill, right?
It's similar to the flood fill yes, just not quite as optimized as floodfill doesn't care the order of search so can be made a little faster.
22:22 That right cat just started revolution🤣
Top left as well
0 dislikes let's keep it that way!
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?
Griffpatch, is there a thumbnail glitch on scratch for you? (When you want to save the thumbnail as something but it doesn't save.) Its happening for me :(
Dunno what this is but I know imma love it :D
Im making a fnaf arcade game, where you play as purple guy on a 2d screen while freddy, bonnie, chica and foxy are chasing you, this was REALLY usefull
Хоть я и не могу понимать это на слух, старания и талант видны и так) Hello from Russia!
Не слишком сложный английский, но кота яблоками кормить не надо.
@@darkfrei2 ахахах
Good, now do one that will handle diagonals and multiple walled routes using a grid of squares a certain size (to make it simple, because I have no idea how I'll program circular walls) and a character with some circular/ -elliptic*- hitbox and some velocity. Which doesn't rely on processor-draining Scratch-only features, but rather on maths so I can replicate it in any programming language I want.
(saw this kind of pathfinding in an unreal engine game)
*Actually I think a turning character with multiple dimensions would be unnecessary. Also it's no good if you love the comment and don't really do anything about it soooooooyeah -imanidiot-
This literally warms my heart because of the nostalgia 😌
scratch would be bad without paper minecraft
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
Hey if you can reply to me please do cause I copied the draggable apple script entirely but it is still not working :( it is only working once I place the apple back down if I drag it in mid air the arrows are staying the same
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!
That was...AWESOME!
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.
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?
SCRATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You are great griffpatch! You should be in the scratch team as you have answers to anything!
Agreed
Awesome video! Did not expect this type of video since i consider pathfinding being advanced. I like how simple and short the solution was, but i would not have found it myself. This was some sort of reverse flood fill?
Yeah, you are practically doing a flood fill, but keeping track of the direction from the source, a depth first search.
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!
@@griffpatchI may be three years late but these still are pretty useful
"Nice and chunky" - Griffpatch,2021
The most convenient timing for me and a friend's game
Thank you, griffpatch! Best wishes!
This is why you are the King of Scratch
Right now I'm watching your video and it's like the greatest thing ever!
0:01 Do I pause the video every time that I watch one to see my username? Yes 😂
Dude that is cool
Time to fuel baldi in my upcoming baldis basics 2D scratch game!
17:18 I had a bug in my code that made everything move like a escalator lol
18:41 it looks like the apple is eating the cats in stead of the cats eating the apple
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.
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!! 😁
One little question: Actually i am working on a "open world" game. That means i have a Player always in the center and by clicking the keys i only change a "x" and "y" variable that moves other projects except my player. How can i add a pathfinding function for something enemies? Thats quite a bit more difficult... Thanks for this tutorial 😁
We need to start using lists to store the tile arrows instead... then we can do things quicker and more flexibly.
@@griffpatch I wait for the tutorial :)
You should put the word "Scratch" in the titles of your tutorials more often, as doing so will give your videos a higher chance to get recommended to people that watch other Scratch videos.
Is there a way to do that without using colors? I want to make the pathfinder invisible for a game
11:30 Finally griffparch uses caps!!!
Greetings from Italy you are the best :)
All normal Scratch blocks are lowercase though.
Yeah, I can finally finish my game. Thank you so much!!!!😁😀
Wow can you see the future this is exactly what I need for my new shooter.
Image: Pathfinding x Maze Generation
I think I have a problem. I tried to link this one and the previous maze making one, but it won't work because the maximum clones were at 300... :(
Use turbowrap
Omg I haven't played scratch in like a year or 2
hmm if my life was just Pathfinding it would be pretty easy
You you 2d Minecraft maker?
How did you make it where scratch supports the shift button?
Fun fact: scratch cat's favorite food is apples
Question: Can this be reused for the tile scrolling platformer? I want to add some sort of flying enemy but It's hard to add the collisions and make the enemy not get stuck on walls
Or at least to be able to edit this code to work with the tiles in the other program
how to make a level publisher? like if you also what to now how to make it
The next time I’m at a computer I’m going to go onto scratch and mix this program with the auto generating maze
Video: 23 minutes
Me: 23 Years
But…. I don’t want to kill birds :(
“Last one to eat the apple is a rotten egg!”
-Griffpatch
I was actually expecting some A* in scratch. That would have been crazy. Epic video tho. You're amazing
ı did but its broken 40 m make and how can ı copy this
my clones were always multiplying until 300 how to fix it?
the same is happening to ME!
I think i might have figured it out,
Do you have if touching not touching a sprite instead of color?
when I switched that it worked
Tysm for the smooth turning code!!!!!!!
Can you make that Minecraft multiplayer
Who though about the passes finding algorithm genius
Oh wow, it's much easier than I thought. Great tutorial as well!
Doesnt putting see-through effect to 100% work too to hide the tiles?
i can hold shift to flip the arrow(7:09)
the dislikes are the people on mobile
WoW daje suba and like 👍🏼👍🏼👍🏼👍🏼👏👏👏👏🎮🎮🎮🇵🇱
nice :)
next time can you make a tutorial on 3d engine? thank you!
I added an FPS variable. Without cat clones the FPS are only 16. Why the project running so slowly without clones?
Because there's the path clones.
griffpatch won't heart this comment.
wow you are the best @griffpatch :O
I have idea do a channel without voice and explain for people dont have a lot of time
My one wasn't working at the start and I figured out the problem. The problem was that my clones were going underneath eachother, quickly exceeding the clone limit. I fixed this my making it place a clone if not touching edge or color purple (which was the color of my arrow)
Oh it as because I didn't flllow the tutorial correctly, Whoops
Make a tutorial for lego EV3 lol. That would be hard
Quick question: How did you get that data next to the green flag showing # of clones? Also, you're my favourite scratcher
it's a chrome extension i think