Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » help with a maze
- solo_2002
- New Scratcher
3 posts
help with a maze
how can i get my sprite to complete a maze on its own using broadcast masages
- ErnieParke
- Scratcher
1000+ posts
help with a maze
Getting the sprite to complete your maze can be tricky, depending on what you do. You can either have your sprite continue turning left whenever needed or possible, or you could use a pathfinding AI, which is complicated. From those to options, I'd recommend having the sprite turn left whenever it can move left, or whenever it can't move forwards, since it's much simpler then the other method.
Once you get the code for that, you should be good. ;)
By the way, you'll probably need a turn left and a move forwards broadcast for this.
With regards,
ErnieParke
Once you get the code for that, you should be good. ;)
By the way, you'll probably need a turn left and a move forwards broadcast for this.
With regards,
ErnieParke
- solo_2002
- New Scratcher
3 posts
help with a maze
i was trying to get it to broadcast but it seem to get so far and go all mad and go round and round
- dawid123791
- New Scratcher
1 post
help with a maze
New game coming out soon: looking for food. Great game, great fun. Look out for it
- Discussion Forums
- » Help with Scripts
- » help with a maze