# I can't figure out the code

**URL:** https://forum.kirupa.com/t/i-cant-figure-out-the-code/63932
**Category:** Uncategorized
**Created:** [September 11, 2004, 2:43pm UTC](https://forum.kirupa.com/t/i-cant-figure-out-the-code/63932 "2004-09-11T14:43:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alligatooor](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@alligatooor](https://forum.kirupa.com/u/alligatooor)
#### Post date: [September 11, 2004, 2:43pm UTC](https://forum.kirupa.com/t/i-cant-figure-out-the-code/63932/1 "2004-09-11T14:43:23Z")

</div>

hey de nuevo  
i am doing a sort of the original snack game but i have a problem 2 make the parts of the snack follow the head i made the code but it didn’t work  
help…!any way here is the source & i bookmarked the code

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 16, 2004, 9:34am UTC](https://forum.kirupa.com/t/i-cant-figure-out-the-code/63932/2 "2004-09-16T09:34:32Z")

</div>

There’s so much wrong with your code …  
Never use more than one (1!) onEnterFrame.  
If you have multiple functions to execute, put them in order in just one onEnterFrame.

You had better use object oriented code, read all about it here on Kirupa.  
good luck!
