Simple Maze Generation | Scratch Tutorial

Поділитися
Вставка
  • Опубліковано 16 чер 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,1 тис.

  • @pe1900
    @pe1900 3 роки тому +63

    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

  • @dubsisthegoat48
    @dubsisthegoat48 3 роки тому +342

    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

  • @panzehir3669
    @panzehir3669 10 місяців тому +5

    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.

  • @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

  • @CaseyLabAnimations
    @CaseyLabAnimations 3 роки тому +198

    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.

  • @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).

  • @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

  • @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.

  • @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 🤣🤣🤣

  • @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...

  • @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.

  • @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

  • @Parmeseanz
    @Parmeseanz 3 роки тому +66

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

  • @lasercatto
    @lasercatto 3 роки тому +43

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

  • @wyattskinner697
    @wyattskinner697 6 місяців тому +1

    This is honestly one of the most insane things I’ve seen on 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!

  • @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.

  • @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.

  • @itzmonstrovrW
    @itzmonstrovrW Рік тому

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

  • @prismplayz1812
    @prismplayz1812 3 місяці тому

    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

  • @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

  • @yomamafataf
    @yomamafataf 3 роки тому +19

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

  • @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!

  • @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 ;)❤

  • @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.

  • @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

  • @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 😊

  • @SomeGuy-lj5kw
    @SomeGuy-lj5kw 3 роки тому +6

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

  • @isabellecall9859
    @isabellecall9859 3 роки тому +33

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

  • @giacomoswift8919
    @giacomoswift8919 Рік тому +3

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

  • @-_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

  • @thejoshhes5632
    @thejoshhes5632 3 роки тому +5

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

  • @Nedums
    @Nedums 3 роки тому +2

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

  • @TheSkyRainbowGGDream
    @TheSkyRainbowGGDream 2 роки тому +3

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

  • @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

  • @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

  • @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 :|

  • @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

  • @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.
    👍👍👍😃😃

  • @shadow_1363
    @shadow_1363 3 роки тому +3

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

  • @chiroyce
    @chiroyce 3 роки тому +4

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

  • @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!

  • @ashtons5376
    @ashtons5376 2 роки тому +2

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

  • @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?: ua-cam.com/video/6oMUiZXYQC4/v-deo.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

  • @AJ-BS
    @AJ-BS 3 роки тому +5

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

  • @andretheprofessionalgamer2623
    @andretheprofessionalgamer2623 2 роки тому

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

  • @maniasoker04
    @maniasoker04 2 роки тому +2

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

  • @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.

  • @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.

  • @cheesca_roblox
    @cheesca_roblox 2 роки тому +1

    Thank you! This tutorial was extremely useful! 🤩

  • @Terencelei_
    @Terencelei_ 2 роки тому +1

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

  • @haffelthewaffel9071
    @haffelthewaffel9071 3 роки тому +5

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

  • @progamer9465
    @progamer9465 3 роки тому +4

    Yay! More scratch tutorials!

  • @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.

  • @omarel-ghezawi6466
    @omarel-ghezawi6466 Рік тому +1

    Excellent. Very informative and well-explained.

  • @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

  • @LaughgreatYT
    @LaughgreatYT 2 роки тому +20

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

  • @youtubewatcher2594
    @youtubewatcher2594 9 місяців тому

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

  • @dubsisthegoat48
    @dubsisthegoat48 3 роки тому +7

    18:34 Griffpatch 2021 - WhooHooo!

  • @kobi...
    @kobi... 3 роки тому +5

    I really needed this Thanks!
    *Again*

  • @karoljakusz4637
    @karoljakusz4637 2 роки тому +1

    Awesome! Thanks for helping me out :)

  • @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.

  • @ReevaRuparel
    @ReevaRuparel 3 роки тому +9

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

  • @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

  • @spawnnumber2126
    @spawnnumber2126 2 роки тому

    Fits perfectly with both pathfinding and pathfinding with grids.

  • @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?

  • @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 2 роки тому

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

  • @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

  • @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

  • @octopus1613
    @octopus1613 2 роки тому +3

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

  • @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

  • @knuu6662
    @knuu6662 2 роки тому

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

  • @user-lk2uc2yy7o
    @user-lk2uc2yy7o 28 днів тому

    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

  • @svshhsbs
    @svshhsbs 3 роки тому +3

    thanks for posting on my birthday!

  • @ussystems8202
    @ussystems8202 3 роки тому +3

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

  • @aydin4174
    @aydin4174 Рік тому

    Im going to make this with multiple of the bounds and multiplayer tysm for the tutorial griffpatch i will credit you when i finish it! :D

  • @devsinha3092
    @devsinha3092 Рік тому

    thank u soooo much for this vid it works so nice!!

  • @lenochodec
    @lenochodec 3 роки тому +3

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

  • @SGD2718
    @SGD2718 3 роки тому +9

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

  • @primowithgems
    @primowithgems 2 роки тому

    Thank you for this video I made a project based off this! great vid 10/10 would watch again

  • @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.

  • @Greentallbox
    @Greentallbox 3 роки тому +4

    I just made mine! this tutorial is helpful!

  • @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

  • @marshalz101
    @marshalz101 2 роки тому

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

  • @T0xik1tty
    @T0xik1tty Рік тому

    I plan on using this for my rouge-like game, thanks!

  • @uehufheuwiqhf
    @uehufheuwiqhf 3 роки тому +4

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

  • @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!

  • @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

  • @idk_but-random
    @idk_but-random 2 роки тому +1

    Dude thank you for this because of you i was able to make one with coding not blocks but code in another game just cause of that idea thanks man

  • @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

  • @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

  • @Shahfeeq
    @Shahfeeq 2 роки тому +1

    You are basically making me pass my scratch exams

  • @Karlo645
    @Karlo645 Рік тому

    Thanks, it really helped me!

  • @focat
    @focat 3 роки тому +6

    Without you, half of my projects would be discontinued lol
    Edit: Autocorrect made a spelling mistake.

  • @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

  • @vinfinityremakerguy
    @vinfinityremakerguy Рік тому

    This combined with the pathfinding alg. and automation would make for a good screen saver

  • @anasoares6476
    @anasoares6476 Рік тому

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