You can use a modulo operator to do this.
For example:
Code:
int $speed = 4;
if ((frame % $speed) == 0)
file3.frameExtension++;
if (file3.frameExtension > 9)
file3.frameExtension =1;
Hope this helps you out.
Edit: Just to explain. The higher the speed variable is, the slower it will be. For this, it will take 4 frames to increment once.
Imagination is more important than knowledge.
Last edited by NextDesign; 08-06-2010 at 01:26 AM.