Here's a simple logic for the entire game. We're updating the frame every 0.15 seconds, and whenever we update, we sequentially move each body (starting from the end of the tail all the way up to the head).
In between frames it looks as though head is moving first and the rest of the body is following.
Download this project:
https://github.com/RoundBearChoi/Cube_Snake
Cube Snake playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Ap_i6xIYgHIpE7lsNnxLM_
Also check out my 2.5D platformer tutorials:
https://youtube.com/playlist?list=PLWYGofN_jX5BupV2xLjU1HUvujl_yDIN6
Any questions/comments? Join us on discord:
https://discord.gg/RbxjBu3
Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
steem: https://steemit.com/@roundbeargames
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/roundbeargames-choi-15041a9a
Patreon:
https://patreon.com/roundbeargames