Simple Maze Generation | Scratch Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • Ever wondered how to generate a random maze? Today you can code with me a simple project in Scratch that draws a new maze every time. You'll be amazed how easy it is!
    We cover:
    • random maze drawing using tiles and stamping
    • prevent corridor overlap
    • routing around objects
    • backtracking
    • recursive scripts using custom blocks
    • variable size and length of passageways
    • adding a simple user controlled character to gamify the project!
    Studio on Scratch - scratch.mit.edu/studios/29651...
    Hope you enjoy!!! And Scratch On!
    🚀 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

ความคิดเห็น • 2.1K

  • @dubsisthegoat48
    @dubsisthegoat48 3 ปีที่แล้ว +343

    Who Would EVER dislike griffpatch's tutorials... Griffpatch is the god of Scratch and doesn't deserved to be disliked on his videos

    • @griffpatch
      @griffpatch  3 ปีที่แล้ว +119

      Maybe it wasn't what they were hoping, or they don't do Scratch

    • @dubsisthegoat48
      @dubsisthegoat48 3 ปีที่แล้ว +29

      @@griffpatch oh ok griffpatch

    • @awesomegamer-cv4zf
      @awesomegamer-cv4zf 3 ปีที่แล้ว +18

      @@griffpatch It might not be what im hoping for, but I always come in to check it out!

    • @eaglemation213
      @eaglemation213 3 ปีที่แล้ว +14

      or they are just haters

    • @eaglemation213
      @eaglemation213 3 ปีที่แล้ว +16

      @@griffpatch or they are just haters

  • @pe1900
    @pe1900 3 ปีที่แล้ว +64

    9:41 "so how do we get out of this one? the answer is we...don't."
    that's a good mindset!

    • @smartart6841
      @smartart6841 3 ปีที่แล้ว +3

      We dont is my answer on how to do the black border since lets just make the tile and border nearly the same colour and make it just reset if you touch the border

  • @lidestudios5094
    @lidestudios5094 ปีที่แล้ว +21

    I've programmed a maze generator 2 days ago in JS, still working on it in order to avoid repetitive-looking patterns... my code for it is a bit complicated. After watching your video, I realized that the process of creating a maze is actually simpler than I made it to be!
    Thanks for creating these amazing tutorials!
    Also, 21:35 you blew my mind when you placed the key pressed block inside an operator 🤯 I didn't know that was possible

    • @griffpatch
      @griffpatch  ปีที่แล้ว +10

      Yay :) I love simple solutions to complex looking problems

    • @cyberxandcorruptedtiger
      @cyberxandcorruptedtiger ปีที่แล้ว +2

      @@griffpatch Yeah! Me Too

    • @LienzReve
      @LienzReve หลายเดือนก่อน

      "That's the neat part, you don't."

    • @hayleycarter7737
      @hayleycarter7737 15 วันที่ผ่านมา +1

      ??????????????????????????????

  • @panzehir3669
    @panzehir3669 10 หลายเดือนก่อน +6

    I love how you show us how to put the codes together easiliy and in a simple way. I didn’t know how to code that much but when I started to watch your tutorials, I started to understand how things work.

  • @CaseyLabAnimations
    @CaseyLabAnimations 3 ปีที่แล้ว +199

    I'm not at all into programming, and I haven't even looked at Scratch in a decade... but I sat through the whole video because wow it's interesting how you can use the simplest code to do things like this, and griff has a voice that's very easy to listen to.

  • @tgnash28
    @tgnash28 3 ปีที่แล้ว +249

    This will fit perfectly with the pathfinding!

    • @Nersaurus
      @Nersaurus 3 ปีที่แล้ว +4

      I litteraly tred that.
      Spoiler: I have been here tryna make it work, only got 11 path directions on screen.

    • @tgnash28
      @tgnash28 3 ปีที่แล้ว +4

      @@Nersaurus Probably it was the size

    • @tristontherailfan
      @tristontherailfan 3 ปีที่แล้ว +2

      Yeah!
      I didn’t read the other comments

    • @Mr52308
      @Mr52308 3 ปีที่แล้ว +1

      Thats what i was thinking

    • @bluegamezone9122
      @bluegamezone9122 3 ปีที่แล้ว +3

      It would just make a zero player game 🤣🤣🤣

  • @sachchankumar1754
    @sachchankumar1754 ปีที่แล้ว +4

    You are the genius one in the universe who can do everything possible in coding.
    You make me popular in my school through this simple maze trick.

  • @NoelleTGS2
    @NoelleTGS2 2 ปีที่แล้ว +2

    I haven't used Scratch in literally years but I remember you being such a massive inspiration for me, no idea how you ended up in my YT recommendations lmao

  • @aparrot4254
    @aparrot4254 3 ปีที่แล้ว +171

    Damnnn. You did maze generation with just a few chunks of blocks, with backtracking! The coolest part was that you could add shapes that the maze avoids, can't imagine how i would go about achieving that with lists and other algorithms. Good video!

    • @Taro-yt4tk
      @Taro-yt4tk 2 ปีที่แล้ว +2

      I still don't understand how the backtracking works

    • @Taro-yt4tk
      @Taro-yt4tk 2 ปีที่แล้ว +2

      wait, i think i know how he did it

    • @writethatdown100
      @writethatdown100 ปีที่แล้ว +1

      I can imagine it. I'm using this tutoiral as a reference for my zombie/shooter game. It uses a grid of tiles (also borrowed from griffpatches tutoirals).

  • @shock59
    @shock59 3 ปีที่แล้ว +172

    Pathfinding tutorial: Let’s give Scratch Cat lots of love let apples!
    Maze generation: We’ll begin by deleting Sprite1...

    • @BlueSusAmigosYT
      @BlueSusAmigosYT 3 ปีที่แล้ว +23

      rip scratch cat number 29481949 2021 - 2021 😔

    • @laky2k866
      @laky2k866 3 ปีที่แล้ว +6

      Well... You could connect the two together for an endless maze generator and solver maybe! Or for example a game with random mazes and enemies following you pathfinding 😀

    • @dubsisthegoat48
      @dubsisthegoat48 3 ปีที่แล้ว +2

      haha lol

    • @derwastl
      @derwastl 3 ปีที่แล้ว

      🤣

    • @igorjosue8957
      @igorjosue8957 3 ปีที่แล้ว +4

      pathfinding: lets make some cats in a maze and make they find the apple
      maze generation: lets delete the cat and make the maze
      pathfinding generator: so lets delete the cat and make him find the apple...

  • @thatboydunk
    @thatboydunk 2 ปีที่แล้ว +1

    this was really useful because it really helped me be able to make the backroom when making the back rooms inside of scratch

  • @rosycookie._
    @rosycookie._ 2 ปีที่แล้ว +9

    This was AMAZING!!! u taught it like it was so simple!! Normally for me, i draw my owns maps but this one is 1000 times better!

  • @lasercatto
    @lasercatto 3 ปีที่แล้ว +43

    Who else thinks watching griffpatch play games with commentary is the best thing ever

  • @Parmeseanz
    @Parmeseanz 3 ปีที่แล้ว +66

    griffpatch: Simple Maze Generation Tutorial
    Me: *Dies in complexity*

  • @wyattskinner697
    @wyattskinner697 6 หลายเดือนก่อน +1

    This is honestly one of the most insane things I’ve seen on scratch.

  • @nguyenminhdang4315
    @nguyenminhdang4315 หลายเดือนก่อน

    So this dude just explained the concept of randomized depth-first search algorithm for maze generation without even mentioning randomized depth-first search algorithm for maze generation once in this video? You just earned a new subscriber.

  • @yomamafataf
    @yomamafataf 3 ปีที่แล้ว +19

    There are 5 savages in the world who disliked griffpatch's video

    • @fuzzyplayz1510
      @fuzzyplayz1510 3 ปีที่แล้ว

      yes.

    • @Luckyshape
      @Luckyshape 3 ปีที่แล้ว

      Make that 6. And no, I'm not one of those savages.

    • @yomamafataf
      @yomamafataf 3 ปีที่แล้ว +1

      @@Luckyshape same bro it's sick they need a mental hospital I don't even think they deserve a mental hospital 😁😁

    • @cyberxandcorruptedtiger
      @cyberxandcorruptedtiger ปีที่แล้ว

      @@yomamafataf ok

    • @ILoveMath_Cats_Coding
      @ILoveMath_Cats_Coding ปีที่แล้ว

      How did u know

  • @Aether-di6ek
    @Aether-di6ek 3 ปีที่แล้ว +17

    So cool!
    Everything is explained very well and is easy to understand!
    New scratchers could definitely learn from these videos, which is another reason why they are good!
    Now time for maze generation with pathfinding!

    • @fireeekitten0389
      @fireeekitten0389 2 ปีที่แล้ว

      can you combine pathfinding with this plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    • @rachelandleah3849
      @rachelandleah3849 ปีที่แล้ว +1

      @Aether 1208, yes, I agree but for me, there are many bugs. My PC is older, and so these types of tutorials just don't work for me. I wish everything would turn out how it shows, and I am not saying that this problem is Griffpatch's fault, but I really wish it could work on slower/old PCs. But when looking at others when searching for things similar on Scratch, I saw that everything went nice and smoothly and the code was beautiful. Even though it does not work on my PC, it still looks like it was easy to understand, easy to make, and works as intended. Nice, but wish I could be a part of it.

  • @Drachenbauer
    @Drachenbauer 2 ปีที่แล้ว +4

    try this set of properties:
    -set tilesize to 30
    -start at x and y each 15 instead of 0
    -remove the maze-bounds-sprite and use [touch (edges)] instead of [touch (maze-bounds)]
    You get a maze, that fills your game-screen perfectly with 16 x 12 tiles of corridors

  • @RobotCodeEscoladeprogramacaoer
    @RobotCodeEscoladeprogramacaoer 2 หลายเดือนก่อน +3

    Thank you so much, you helped me to do the programming of my school! Now, my teacher is not going to kill me ;)❤

  • @isabellecall9859
    @isabellecall9859 3 ปีที่แล้ว +33

    Griffpatch opens up my mind to a whole new realm of possibilities! Great job, griffpatch!

  • @telnobynoyator_6183
    @telnobynoyator_6183 3 ปีที่แล้ว +16

    as always, great video. I haven't used scratch in a long time but I'm always impressed at the clever solutions you put in place to avoid the constraints and limitations of scratch, while keeping the videos understandable for everyone.

  • @prismplayz1812
    @prismplayz1812 4 หลายเดือนก่อน

    The way this guy thinks and codes is just so fluent he started from a chunk then used pen to make a full random maze with back tracking from 3 sprites. This guys out of anyone’s scratch league

  • @zayskyprogramming
    @zayskyprogramming 2 ปีที่แล้ว +2

    I didn’t even code while doing this i just watched this because it’s interesting! Griffpatch can make coding so fun!

  • @csikosghost4302
    @csikosghost4302 3 ปีที่แล้ว +4

    I have been waiting so long for this. Maze generation always made my brain wrinkle and I can't wait to learn how it works.

  • @KenTheCoder
    @KenTheCoder 3 ปีที่แล้ว +23

    I love the animation that griffpatch puts into his videos.

  • @itzmonstrovrW
    @itzmonstrovrW ปีที่แล้ว

    This was extremely easier than I expected and works great! Thanks for the wonderful tutorial!

  • @manasasoba583
    @manasasoba583 2 ปีที่แล้ว +2

    That was such a cool tutorial thank you very much. To be honest Im not that good with Scratch but your videos are helping me fantastically. Thank you

  • @octoriagaming1277
    @octoriagaming1277 3 ปีที่แล้ว +21

    I always would consider such things really hard to make until Griffpatch makes a tutorial about it

    • @mil87_
      @mil87_ 2 ปีที่แล้ว +1

      And then I think of them as harder cuz I know I can never make my code as clean as his :P Seriously I end up with big blocks of redundant code and tons of When 🏳️ Clicked > Forever > If / then. Still just begging to wrap my head around custom blocks lol. It's fine tho, it's all part of learning process and I genuinely really enjoy coding with Scratch!

    • @tiruedileterefe9625
      @tiruedileterefe9625 2 ปีที่แล้ว +1

      If griff doesn't do it I am like :|

  • @04tmoodyscratch24
    @04tmoodyscratch24 3 ปีที่แล้ว +15

    The genius of this is how simple yet well-made it is, like how at the end you could just add in shapes to the bounds and the maze perfectly dealed with it. These are just the best, keep up the great work!

    • @griffpatch
      @griffpatch  3 ปีที่แล้ว +5

      Yeah, I love the naturally emergent fun you can get from coding! :D

    • @RipCocaCOLA339
      @RipCocaCOLA339 ปีที่แล้ว +2

      @@griffpatch Your the best at scratch how did you learn these stuff? WOW

  • @-_lIl_-
    @-_lIl_- 2 ปีที่แล้ว

    Wow, I would have never imagined how to make mazes like this! I thought that you needed to code up things like pathfinding for this, but you made it clear on how to make it simply! I bet you could make a scratch messenger with all of your scratch knowledge. I guess I can now make an infinite randomly generated maze game with a level counter which you showed in a tutorial how to make

  • @thecodewhale1396
    @thecodewhale1396 2 ปีที่แล้ว

    This was exactly what I wanted to do today, and it popped up in my recommendation, and I'm glad it did 😊

  • @kitma9
    @kitma9 3 ปีที่แล้ว +53

    the process:
    me: making a complicated mechanic that i made 300 blocks for, and it still doesn't work
    me: searches up a tutorial
    griffpatch: does the exact same thing in 4 lines
    me, looking through the code: WHY DIDN'T I DO THAT

  • @metal_pineapple7689
    @metal_pineapple7689 3 ปีที่แล้ว +19

    griffpatch: make and x
    me: trying to make a perfect x for 15 minutes

    • @Glad_Playz13325
      @Glad_Playz13325 2 ปีที่แล้ว +1

      So you were like this?: th-cam.com/video/6oMUiZXYQC4/w-d-xo.html

    • @IG00Channel
      @IG00Channel 2 ปีที่แล้ว

      Just make a line, hold shift, turn it to the left (45 degrees), snap it to the center, then click it and hold alt (it will make a duplicate), then just hold shift and turn it to the right two times (90 degrees), snap it to the center. Easy

    • @bauddh42069
      @bauddh42069 2 ปีที่แล้ว

      Me too xd

  • @fractai.
    @fractai. 2 ปีที่แล้ว

    sometimes when i watch these videos i get that feeling where its just too good to be true! i never thought i could make a random maze in scratch wow

    • @griffpatch
      @griffpatch  2 ปีที่แล้ว

      He he, no you can do it too :D

  • @CodeIt641
    @CodeIt641 9 หลายเดือนก่อน

    It was the first griffpatch tutorial I tried to follow but did not finish. But today I have finally done this. In the meantime, I have some of your other awesome tutorials.
    👍👍👍😃😃

  • @ReevaRuparel
    @ReevaRuparel 3 ปีที่แล้ว +9

    I’m a normal human,
    I see a griffpatch vid,
    I click.

  • @shadow_1363
    @shadow_1363 3 ปีที่แล้ว +3

    Woah! That's actually insane the generator, I gotta try this out

  • @BobBobson-gv3ol
    @BobBobson-gv3ol ปีที่แล้ว

    Thankyou for the tutorial. I have to create a scratch game for a course I am doing and I was just trying to see what it is capable of which you have demonstrated quite well.

  • @giacomoswift8919
    @giacomoswift8919 ปีที่แล้ว +3

    I love how the walls formated on their own; super cool!

  • @thejoshhes5632
    @thejoshhes5632 3 ปีที่แล้ว +5

    Wow I’ve never seen a costume limit in scratch. Keep up the great work!

  • @haffelthewaffel9071
    @haffelthewaffel9071 3 ปีที่แล้ว +5

    Griffpatch: You have to be quite precise for this
    Me: *Drawing Precisely Intensifies*

  • @maniasoker04
    @maniasoker04 2 ปีที่แล้ว +2

    I havent made one but this is amazing! I'm amazed :)

  • @ashtons5376
    @ashtons5376 2 ปีที่แล้ว +2

    THANK YOU SO MUCH FOR THIS TUTORIAL!!! I MADE IT AND IT LOOKED AWSOME!!

  • @chiroyce
    @chiroyce 3 ปีที่แล้ว +4

    Wow! The possibilities at the end of this .... INFINITE!!! I already have an idea!

  • @Nedums
    @Nedums 3 ปีที่แล้ว +2

    Wooo! I’ve been seeing these all over scratch, they are so cool! I’ve wondered how to make them

  • @shivenghatate5149
    @shivenghatate5149 2 ปีที่แล้ว

    11 was The Minimum. At 11, I could see the maze, but some parts were extremely thin, and I could barely see them. Thanks for the tutorial, Fantastic Project

  • @andretheprofessionalgamer2623
    @andretheprofessionalgamer2623 2 ปีที่แล้ว

    I'm very thankful to have this tutorial, thank you.

  • @SomeGuy-lj5kw
    @SomeGuy-lj5kw 3 ปีที่แล้ว +6

    Thanks for the Tutorial i actually needed this for a puzzle game.👍
    Keep up the good work!

  • @fkijhbd
    @fkijhbd 3 ปีที่แล้ว +5

    i can't wait to add pathfinding to this. i might also use some of these tile scripts to remaster my old snake game.

  • @doodlesforthought
    @doodlesforthought ปีที่แล้ว

    This tutorial was amazing for me! I am currently making a backrooms game using this tutorial and your 3D walls tutorial too! This tutorial makes it so much easier to make this!

    • @JermaLover1984
      @JermaLover1984 ปีที่แล้ว

      Does it work? Wouldnt the different pen settings clash?

  • @AshishGupta-np3ld
    @AshishGupta-np3ld 10 หลายเดือนก่อน +1

    Wow. Even though I saw this, it seems so impossible. How did you figure this out. My mind is blown just looking at it I made a maze game myself using a readymade maze clipart from the internet, but this is LEGENDARY.
    Shall try this tomorrow. Love your videos Buddy ❤

  • @confusioned2249
    @confusioned2249 3 ปีที่แล้ว +37

    "for now, we'll leave run without screen refresh clear"
    impossible

    • @muhammedsaleel3749
      @muhammedsaleel3749 3 ปีที่แล้ว +2

      "for now, we'll leave run without screen refresh clear"
      wait... what?

    • @akankshadutta9667
      @akankshadutta9667 3 ปีที่แล้ว

      lol that's what i thought too

    • @miguelbaltazar7606
      @miguelbaltazar7606 3 ปีที่แล้ว

      you heard him that recursive script with screen refresh could melt and burn your pc

    • @akankshadutta9667
      @akankshadutta9667 3 ปีที่แล้ว

      @@miguelbaltazar7606 😳👁️👄👁️

  • @chiroyce
    @chiroyce 3 ปีที่แล้ว +12

    Wow! This will go very well with the AI path-finding script!! :D

    • @starlii10
      @starlii10 2 ปีที่แล้ว

      AI makes its way through mazes lol

  • @cheesca_roblox
    @cheesca_roblox 2 ปีที่แล้ว +1

    Thank you! This tutorial was extremely useful! 🤩

  • @Shahfeeq
    @Shahfeeq 2 ปีที่แล้ว +1

    You are basically making me pass my scratch exams

  • @accountdisbanded
    @accountdisbanded 3 ปีที่แล้ว +53

    griffpatch: deletes scratch cat
    me: noooooooo i want my cat to get apples

    • @cyyrse__14
      @cyyrse__14 3 ปีที่แล้ว +2

      The player can be the scratch cat trying to get to the apple... BUT there's a twist... literally. The scratch cat has to solve the maze first before getting to the apple. Maybe you can add your ideas for enemies or obstacles

    • @TheRealVbros
      @TheRealVbros 3 ปีที่แล้ว

      @MeZa Phius r/whooosh

    • @maurolionelmipianoyyo11
      @maurolionelmipianoyyo11 3 ปีที่แล้ว

      @@TheRealVbros r / w h o o o s h

    • @mochixmelodii
      @mochixmelodii 3 ปีที่แล้ว

      @MeZa Phius brUh

    • @necrullmsm
      @necrullmsm 3 ปีที่แล้ว

      @MeZa Phius umm
      Game logic? It can be anything a cat can eat lmao

  • @svshhsbs
    @svshhsbs 3 ปีที่แล้ว +3

    thanks for posting on my birthday!

  • @Elijah_Does_Stuff
    @Elijah_Does_Stuff 5 หลายเดือนก่อน +1

    you may have missed this but combining this "random maze generator" with your "3d raycasting" tutorial can make a fully 3D maze exploring game!

  • @thecoldlemonade3532
    @thecoldlemonade3532 2 ปีที่แล้ว +1

    I dont even use scratch anymore (I now use python, c++, c#) but I still watch these tutorials for ideas. Just because scratch is simple, doesn't mean it's bad.

  • @rammaddirala6857
    @rammaddirala6857 3 ปีที่แล้ว +4

    Great video! I still don't understand why you don't have a million subscribers, these videos are simple and understandable!

    • @rammaddirala6857
      @rammaddirala6857 3 ปีที่แล้ว +2

      I didnt know what to do of your awesome videos so I subbed.

  • @icmy1232
    @icmy1232 3 ปีที่แล้ว +28

    Hi griffpatch, can you make a tutorial on pen? I've seen many pen projects you made and I absolutely love them!

    • @amanammer
      @amanammer 2 ปีที่แล้ว +1

      @Firoz Khan they dint SAY they were

    • @seanfacts6838
      @seanfacts6838 2 ปีที่แล้ว

      L

    • @amanammer
      @amanammer 2 ปีที่แล้ว

      @Firoz Khan since they arnt griffpatch

  • @godgame9841
    @godgame9841 ปีที่แล้ว +1

    Im gonna use this along with the ray casting tutorial in order to make a 3d maze game, both with an infinite mode (this maze generation) and some other mode with levels made by hand, maybe an apocalypse mode or smth with sprites that you have to click before they reach you. Might have to separate modes into separate scratch projects tho

  • @Crosbyman64HS
    @Crosbyman64HS 4 หลายเดือนก่อน

    I recently made my own list driven random maze generator on scratch. It does the same recursive backtracking algorithm yours does, but it draws the maze by "erasing" part of a grid line rather than stamping a bunch of objects. My mazes can get quite big, up to 238 by 178 in size.

  • @oyjuk9192
    @oyjuk9192 3 ปีที่แล้ว +66

    Everything is very well explained but I have a question, why do we use an object as a edge and not the border itself?

    • @griffpatch
      @griffpatch  3 ปีที่แล้ว +34

      I played around for a while with that, We would have had to do some trickery to get around the issue of the sprites going off screen temporarily, and that was throwing things off... Also, we couldn't do the end part of the video where we can use other shapes to make our mazes more exciting!

    • @chiroyce
      @chiroyce 3 ปีที่แล้ว +13

      @@griffpatch Wow, that really makes sense!

    • @oyjuk9192
      @oyjuk9192 3 ปีที่แล้ว +7

      I didn't think on that

    • @griffpatch
      @griffpatch  3 ปีที่แล้ว +8

      @@oyjuk9192 No, I wouldn't have too until I was working on the problem :D

    • @DarkThiefGamingMooMoo
      @DarkThiefGamingMooMoo 3 ปีที่แล้ว +4

      @@griffpatch next do pathfinding in a maze lol

  • @BlueSusAmigosYT
    @BlueSusAmigosYT 3 ปีที่แล้ว +2

    No screen refresh is a powerful tool I didn't knew about before watching your videos

  • @TheMonkeyKing10
    @TheMonkeyKing10 10 หลายเดือนก่อน

    for a sec i thought it was not but i didnt give up and i still followed your tutor and then it work so thank you griffpatch

  • @marshalz101
    @marshalz101 2 ปีที่แล้ว

    this was posted 8 days before my birthday, THE PERFECT EARLY GIFT

  • @AJ-BS
    @AJ-BS 3 ปีที่แล้ว +5

    Wow, I am not sure what I would do without you!!!!!!😀

  • @progamer9465
    @progamer9465 3 ปีที่แล้ว +4

    Yay! More scratch tutorials!

  • @Terencelei_
    @Terencelei_ 2 ปีที่แล้ว +1

    I cant thank you enough for this tutorial! Thank you so muchh!

  • @octopus1613
    @octopus1613 2 ปีที่แล้ว +3

    pretty cool! I've never used this programming software/language before, but I think I might give it a go.

  • @dubsisthegoat48
    @dubsisthegoat48 3 ปีที่แล้ว +7

    18:34 Griffpatch 2021 - WhooHooo!

    • @svshhsbs
      @svshhsbs 3 ปีที่แล้ว

      Henry!

    • @dubsisthegoat48
      @dubsisthegoat48 3 ปีที่แล้ว

      @@svshhsbs hi!

    • @svshhsbs
      @svshhsbs 3 ปีที่แล้ว

      @@dubsisthegoat48 how'd u get so famous?

  • @findochan2947
    @findochan2947 3 ปีที่แล้ว +72

    at 11:44 why the maze will stop at the beginning? It seems looping and never end.
    If no direction way can find. It will keep Move "0 - Tile" means backward. Then it will non stop??? But why will stop at beginning?

    • @griffpatch
      @griffpatch  3 ปีที่แล้ว +27

      You have to trace which scratch code blocks the program has run through. If it goes into one custom block, and then into another... when the other has finished it will return to where it left off in the previous scratch block. This way, it will not run forever, it will only go back as many times as it went forward in the first place... and in the end every movement will have been undone.

    • @findochan2947
      @findochan2947 3 ปีที่แล้ว +6

      @@griffpatch many thanks. Let me think about it

    • @awesomegamer-cv4zf
      @awesomegamer-cv4zf 3 ปีที่แล้ว +2

      @@griffpatch thats really confusing :D but I sorta get it

    • @findochan2947
      @findochan2947 3 ปีที่แล้ว +1

      @@awesomegamer-cv4zf I follow the step. I guess at the last step. It have no place can run, then die end and complete the loop.

    • @Random_vid_maker
      @Random_vid_maker 3 ปีที่แล้ว +3

      @@griffpatch can you do a Tower Defense game or FNF

  • @TheSkyRainbowGGDream
    @TheSkyRainbowGGDream 2 ปีที่แล้ว +3

    I love your videos and I am learning a lot from you!!!

  • @LaughgreatYT
    @LaughgreatYT 2 ปีที่แล้ว +20

    Imagine this, with grid patterns, with path finding
    it would literally be insane

  • @kobi...
    @kobi... 3 ปีที่แล้ว +5

    I really needed this Thanks!
    *Again*

    • @JMS-ji3qp
      @JMS-ji3qp 4 หลายเดือนก่อน

      *Again*

  • @SGD2718
    @SGD2718 3 ปีที่แล้ว +9

    scratch cat be like: but i thought we were friends :(

    • @FelixBlog
      @FelixBlog 3 ปีที่แล้ว

      Yeah lol =P

  • @youtubewatcher2594
    @youtubewatcher2594 9 หลายเดือนก่อน

    I love the concept of a chance of doing something just by using random block

  • @spawnnumber2126
    @spawnnumber2126 2 ปีที่แล้ว

    Fits perfectly with both pathfinding and pathfinding with grids.

  • @ussystems8202
    @ussystems8202 3 ปีที่แล้ว +3

    Really helpful! Congratulations! I'll make a maze game if I have sufficient time! :)

  • @rohansachdeva4952
    @rohansachdeva4952 3 ปีที่แล้ว +38

    It's been 40 seconds since video release and there are already 60 views!! We all really do wait for so long for a new tutorial :D

    • @dubsisthegoat48
      @dubsisthegoat48 3 ปีที่แล้ว +4

      that's griffpatch for u :p

    • @shahinma221
      @shahinma221 3 ปีที่แล้ว

      @PaddlerGames yes

    • @necrullmsm
      @necrullmsm 3 ปีที่แล้ว

      @PaddlerGames one month for 150,000 viesw

  • @ardentd2775
    @ardentd2775 2 ปีที่แล้ว +1

    I can't believe you made this in 20 mins, and luv how you can add shapes and the maze avoids it! I would never had thought of this brilliant idea! Thx a lot griffpatch:) btw do you have a project this shared on scratch? I can't find it.

    • @griffpatch
      @griffpatch  2 ปีที่แล้ว +2

      There's a studio of them on my griffpatch_tutor account

  • @anaycoding6594
    @anaycoding6594 2 ปีที่แล้ว

    My man made a pathfinding tutorial and a maze tutorial. Now all I can say is the cats will have a hard time finding the apple.

  • @lenochodec
    @lenochodec 3 ปีที่แล้ว +3

    We need multiple tutorials about how to make rpg!!! That would be epic!

  • @gibbblers
    @gibbblers 3 ปีที่แล้ว +10

    When I see a notification *checks it and notices its from griffpatch screams: “YESSSSSSSSSSSSSSSSSSSS”

    • @win_ini
      @win_ini 3 ปีที่แล้ว

      i feel sorry for the people in your home excluding you

    • @gibbblers
      @gibbblers 3 ปีที่แล้ว

      @@win_ini lol

  • @anasoares6476
    @anasoares6476 ปีที่แล้ว

    Wow, this was made 4 days before my birthday, rock on!

  • @s.1.k.e.
    @s.1.k.e. ปีที่แล้ว +1

    Griffpatch , you're the BEST scratcher TH-camr who make tutorials and some cool videos and stuff :D

  • @Dr0drakon
    @Dr0drakon 3 ปีที่แล้ว +4

    I’m all ready thinking about how to combine this with the pathfinding project 🤣

    • @sudhaprv
      @sudhaprv 3 ปีที่แล้ว

      Yeah same

    • @oyjuk9192
      @oyjuk9192 3 ปีที่แล้ว

      I think there will to clones if you use the same method

  • @Greentallbox
    @Greentallbox 3 ปีที่แล้ว +4

    I just made mine! this tutorial is helpful!

  • @knuu6662
    @knuu6662 2 ปีที่แล้ว

    While i was watching this video, this gave me an idea to make a maze just like you!

  • @999.CLASHH
    @999.CLASHH 2 ปีที่แล้ว

    ur insane u even made a whole geometry dash game im surprised keep up the good work

  • @awesomegamer-cv4zf
    @awesomegamer-cv4zf 3 ปีที่แล้ว +4

    :PPPPP I can't wait to get started but I have to rush some of my homework tonight
    whelp, better finish it faster!

  • @yeetus2637
    @yeetus2637 3 ปีที่แล้ว +3

    Hi, griffpatch! I've encountered a bug in the tile scrolling platformer series. Goombas are killed if Mario is moving downwards and are touching him, *regardless of where Mario is relative to the goomba.*

    • @starlii10
      @starlii10 2 ปีที่แล้ว

      That's also a bug in the original SMB, lol

  • @user-lk2uc2yy7o
    @user-lk2uc2yy7o หลายเดือนก่อน

    9:41 "so how do we get out of this one? the answer is we...don't." I started laughing but then you started explaining why I started to look and stop laughing

  • @theawakeningknight
    @theawakeningknight 2 ปีที่แล้ว

    WOOOOOOOOOOOOOW. Just.. wtf bro how can you do such a thing that's absolutely incredible

  • @OCJDaze
    @OCJDaze 2 ปีที่แล้ว +4

    it would be so cool if you could combine this with raycasting, but if you kept the erase all in the raycaster it breaks but if you remove it it still breaks

    • @arandompersonontheinternet8127
      @arandompersonontheinternet8127 2 ปีที่แล้ว +2

      I actually made one!
      Name: a very cool 3D maze generator

    • @c_sea1n
      @c_sea1n ปีที่แล้ว

      @@arandompersonontheinternet8127 Can you send a link to it? I can't find it on scratch

    • @arandompersonontheinternet8127
      @arandompersonontheinternet8127 ปีที่แล้ว

      @@c_sea1n I sadly lost my account with that game, but, I still use scratch

  • @uehufheuwiqhf
    @uehufheuwiqhf 3 ปีที่แล้ว +4

    "for now, we'll leave run without screen refresh clear"
    wait... *_thats illegal_*

  • @MamaMoLangNaman20
    @MamaMoLangNaman20 2 ปีที่แล้ว +1

    Wow! Thankyou Griffpatch for Teaching me I literally made a good game because of this tutorial and I will give credits in the credits box to give credit to you Thankyou soooo Much ! And it's literally with just a little bit off blocks ❤❤❤❤❤😊❤❤❤❤

  • @cutepugjoardan
    @cutepugjoardan 2 ปีที่แล้ว

    i like this dude because he explains why we should we put the sprites....