Page 1 of 1

Is it possible...

PostPosted: Thu Sep 04, 2008 6:26 pm
by Azou
...to have a code which only happens when the current animation is finished?

Re: Is it possible...

PostPosted: Thu Sep 04, 2008 6:31 pm
by Kalladdolf
Sure if you use the AnimationFinish event.

Re: Is it possible...

PostPosted: Thu Sep 04, 2008 6:45 pm
by Azou
Wait,you didn't get me :mrgreen:
I want tomake a combo action(with 3animations).But i've got a code,called hitbutton.
I meant,how can i do that,even when you press the button(so the the variable'll be hitbutton=2;),the event only happens at the end of the current animation?

Re: Is it possible...

PostPosted: Thu Sep 04, 2008 7:30 pm
by Kalladdolf
find out how many animpos the animation has.
let's say the last animpos is 5 (the last frame of the animation is five, this is just an example)
Key down / hitbutton / Script Editor
Code: Select all
if(animation_actor.animpos == 5)
{//code;} //that will make the actor execute the action only when the position of the animation is the last (5 in this case)

Re: Is it possible...

PostPosted: Sat Sep 06, 2008 12:22 pm
by Azou
Wow!Thanx!With that,my game demo will soon be ready!