function init_animsprite()
{
while (1)
{
energy_sprite.frame += 0.1 * time_step;
if (energy_sprite.frame > 10)
{
energy_sprite.frame =0; // loop
}
wait (1);
}
}


for that
--------------------
try this (not the problem. but faster for the engine):

function init_animsprite()
{
while (1)
{
energy_sprite.frame += 0.1 * time_step;
energy_sprite.frame=cycle(energy_sprite.frame,0,10);

}
}

---------------------------------------------------


I dont see an action in your script.. if the engine can't find the action, thats why..


does your second script have the menu panel defined, again?
using more then 1 script can really cause issues, if your not organized properly. (not that im saying your unorganized) - just saying its harder to do, if you dont know what your doing...

Last edited by DevoN; 04/14/10 01:50.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com