ent_frames (
ENTITY*);
This instruction returns the number of the entities' animation frames.
Parameters:
ENTITY* - entity pointer
Returns:
Number of frames.Speed:
FastExample:
// Animating an entity with changing the frame parameters.
action animate()
{
while(1)
{
my.frame += time_step;
if (my.frame >= ent_frames(my))
{
my.frame -= ent_frames(my);
}
wait(1);
}
}
See also:
ent_animate,
ent_skins, ent_bones
► latest
version online