I've read from the tutorial that it's possible to animate the sprite with a series of frames. On the tutorial it uses ent_create in creating the object..
action explosion()
{
my.ambient = 100;
my.flags |= BRIGHT;
while(1)
{
while (!key_e) wait (1);
for (my.frame=0; my.frame<12; my.frame += 3 * time_step) wait (1);
}
}
Is it possible to use pan_create for this instead of ent_create? what can we use instead of my.frame??