Im creating a little snake game and I need help a little help. So far I have been able to create the snake head and the apple it is supposed to eat but I want the snake to grow in length when he eats the apple, I have partially solved that problem, but the extra body that is added to the snake doesn�t follow the snakes head as it should. I will include the code:
When I hit an arrow key and change direction the body does too i.e it doesn�t follow the head instead it�s like it�s stuck on the heads rear, if you get my meaning. What would solve this problem is some method to tell the body maintain the same direction for say 100 milliseconds then turn in the same direction as the head. I want the whole snake body to act like a train.
Please help
[ edited to preserve formatting using the [code] and [/code]
UBB tags -ds ]
[ November 27, 2004: Message edited by: Dirk Schreckmann ]