I’m making a snake clone, but can’t seem to figure out some simple logic.
The body parts following one another.
Any ideas?
A lot of people in Unity Answers have tried this, so you may be able to get some ideas from the script postings there.
Although we did a snake game ‘Snake Showdown’ on Android and iOS and getting a textured seamless snake with a head, body and tail to move around is no small achievement. The guy coding it ended up doing procedural mesh generation, as getting the corners to appear correctly was a nightmare.
Although if you just want simple blocks to follow each other I’m sure you’ll find more than enough scripts to get you started in Unity Answers. I even think tornado twins or one of those tutorial people on youtube have some tutorial on it.
To keep it simple you could just have a sphere for each part of the snake, then use code to cleverly transform the sphere locations, or use hinge joints. I’m sure there are many ways to approach it.
I totally forgot about hinge joints haha
Thanks!
Hehe well good luck, hope it works out. I think if you can get the physics/hinge joints working it will add a nice ‘feel’ to the movement and turning of the snake.