Page 1 of 1

Animindex?

PostPosted: Wed Mar 03, 2004 9:53 pm
by jazz_e_bob
What does animindex represent?

PostPosted: Wed Mar 03, 2004 11:50 pm
by makslane
Use animindex to know the actual animation in your actor

If your actor has 3 animations, then:

First animation has animindex = 0
Second animation has animindex = 1
Third animation has animindex = 2

PostPosted: Thu Mar 04, 2004 1:00 am
by jazz_e_bob
Great. Thanks!

PostPosted: Thu Mar 04, 2004 12:15 pm
by ingsan
For animindex, do u have to, first, define ur animations with script and then determine their index ? Or does it have to do with the the "Rank" of ur animations in the Actor Control panel :?:

PostPosted: Fri Mar 05, 2004 1:12 am
by makslane
Use the Actor Control "Rank"

PostPosted: Fri Mar 05, 2004 12:39 pm
by ingsan
:o

GREAT ! so animpos actually determines an Actor's Frame number !

Wow, i rarely feel so excited with a software, but i have to say that at this very moment i AM! :o

GE'S GREAT

PostPosted: Sat Mar 13, 2004 9:43 pm
by ingsan
Well i've been trying things with animpos.

But i have a question. If i have let's say 20 frames for an actor, can i tell him (with scripting) to first play animation from frame 0 to 10 and STOP. and after Timer X to go from 10 to 20 ?

I'm gonna try it myself and... :x i hope it WORKS !

/.§:!:;;!!/°8àé&)"_)à_° :roll:


:)

PostPosted: Mon Mar 15, 2004 1:45 pm
by makslane
On "Mouse Button Down" Event (or any event other than Draw Actor)

Add a "Change Animation Direction" action:
Actor: Event Actor
Direction: Stopped

Add "Wait for frame action": Any animation, 10


Add a "Create Timer" action:
Actor: Event Actor
Timer: wait (Periodic, 2000 ms, 1 times)

Add "Wait for frame action": Any animation, 10



On Timer Event of wait timer:

Add a "Change Animation Direction" action:
Actor: Event Actor
Direction: Forward

Add "Wait for frame action": Any animation, 10

PostPosted: Mon Mar 15, 2004 1:53 pm
by ingsan
Genious ! 8)
makslane wrote:
On Timer Event of wait timer:

Add a "Change Animation Direction" action:
Actor: Event Actor
Direction: Forward

Add "Wait for frame action": Any animation, 10


Does that mean that the actor's animation will stop at frame 20 ?

PostPosted: Mon Mar 15, 2004 1:58 pm
by makslane
To stop on frame 20 you must add other "Change Animation Direction" action with "Wait for frame" 20