Page 1 of 1

ActorCount

PostPosted: Sun Mar 14, 2004 8:42 pm
by ingsan
What is ActorCount ? :?

mmmmm...and transp ? :(

:? mmmmmm .... and what are the differences between animpos, animindex and nframes ? ...... :roll:
:D please

PostPosted: Mon Mar 15, 2004 2:47 am
by jazz_e_bob
Actorcount = total number of actors currently active.

Transp = Transparency
0 = fully visible. 1 = fully transparent.

nframes = number of frames in the current animation

animpos = the position of the current animation

animindex = each animation that an actor has has a unique index assigned to it. ( This way you can tell which animation is currently running. )

PostPosted: Mon Mar 15, 2004 10:10 am
by ingsan
and with animindex, can u tell an actor(who has 6 animations assigned to it and that its current animation is 1) to go and have another animation (ex animation 2) after a timer ?

Thanx for all pal :)

PostPosted: Mon Mar 15, 2004 10:30 am
by jazz_e_bob
Hi ingsan :)

Animindex can be read but not written.

You use Change Animation along with the anim name to set it.

So:

On Timer Event

if (animindex == 1)
ChangeAnimation("Event Actor", "animation_2", FORWARD);

Image

PostPosted: Mon Mar 15, 2004 12:00 pm
by ingsan
Thanx Boss 8)

PostPosted: Mon Mar 15, 2004 12:36 pm
by jazz_e_bob
Everything's just great! :)