Thanks! The way I did the snake was to have a Node2d for the whole snake, and Kinematicbody2d for the head, which has all of the detection and navigating responsibilities. Then for each body part, they have a Rigidbody2d that is connected between head/body pieces for Pinjoint2d nodes. Just make sure the Rigidbody2d nodes are children of the Node2d snake instead of each other or else you get some strange results!
← Return to game
Comments
Log in with itch.io to leave a comment.
I liked this game, I found it very relaxing. Dig collect, return, and avoid the snakes. Simple, but effective great job.
Thanks! The way I did the snake was to have a Node2d for the whole snake, and Kinematicbody2d for the head, which has all of the detection and navigating responsibilities. Then for each body part, they have a Rigidbody2d that is connected between head/body pieces for Pinjoint2d nodes. Just make sure the Rigidbody2d nodes are children of the Node2d snake instead of each other or else you get some strange results!