# Help with snake game - Head and Tail

**URL:** <https://forum.kirupa.com/t/help-with-snake-game-head-and-tail/268421>\
**Category:** programming\
**Created:** [August 13, 2008, 4:58pm UTC](https://forum.kirupa.com/t/help-with-snake-game-head-and-tail/268421 "2008-08-13T16:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JinxBunny](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@JinxBunny](https://forum.kirupa.com/u/JinxBunny)\
**Post date:** [August 13, 2008, 4:58pm UTC](https://forum.kirupa.com/t/help-with-snake-game-head-and-tail/268421/1 "2008-08-13T16:58:16Z")

</div>

Hello,

I’ve made a simple snake game from a tutorial and it works fine for a quick fun game, it uses this actionscript: [http://maro2194.tripod.com/Snake\_Actionscript.txt](http://maro2194.tripod.com/Snake_Actionscript.txt)

But I really wanted to know how to make a snake game where the head and the tail follow the direction of the arrows too, and then only the middle (body) get’s longer when the head goes over food -

so there would be 3 graphics, a head, a body piece (that duplicates when ‘food’ is collected) and a tail.

can anyone help me out?

thanks in advance!
