The green spaces are actually brick Objects, and instead of deleting them I simply change their transparency to 1.0 and their boolean "CanCollide" to false to make them a "free space". I find out which squares are adjacent to a specific space by calculating their distance away using their coordinates.
When a space is cleared I store its position to a list. When it reaches a dead end, it backtracks through the list, deleting items until it finds one that has at least one free space next to it.
your maze is awesome awesome
sk8vidman1 3 months ago
how do you make one?
sk8vidman1 3 months ago
Comment removed
Randomize12345666 10 months ago
This has been flagged as spam show
song is fu[king shit by fu[cking over used
noobman90000 1 year ago
This has been flagged as spam show
song is fu[king shit by fu[cking over used
noobman90000 1 year ago
song is fu[king shit by fu[cking over used
noobman90000 1 year ago 3
@noobman90000 why would you say it?
you know what?
sence you said that,i will spam YOU!
sk8vidman1 3 months ago
ROBLOX?! YOURE AMAZING!
lol or this backtracker algorithm do 100% =]
but you have lots scripts, thats not good =]
i'm trying to learn this algorithm, i wanna create a maul =]
roblox are perfect for lab ;p 3D rendering and easy-script are perfect for everyone ;p
gravyerd 1 year ago
OK, thanks! I'm going to start working on a 3D maze gen algorithm now.
penlume 2 years ago
How do you know that there's a free space?
penlume 2 years ago
The green spaces are actually brick Objects, and instead of deleting them I simply change their transparency to 1.0 and their boolean "CanCollide" to false to make them a "free space". I find out which squares are adjacent to a specific space by calculating their distance away using their coordinates.
LimeIron 2 years ago
That's great! How did you store information for backtracking?
penlume 2 years ago
When a space is cleared I store its position to a list. When it reaches a dead end, it backtracks through the list, deleting items until it finds one that has at least one free space next to it.
LimeIron 2 years ago