Home > Blockchain >  Why elements of snake don't follow each other?
Why elements of snake don't follow each other?

Time:01-06

I've just started learning Unity, and I wanted to try to write a Snake.

Logic goes as follows:

  • Head marks its spot
  • Head moves
  • Loop starts
    • Child goes to marked spot
    • Spot where child was gets marked

This should have made elements of the snake follow each other, however, it results in weird shapes: Example in action

  • Related