Is it possible...

Game Editor comments and discussion.

Is it possible...

Postby Azou » Thu Sep 04, 2008 6:26 pm

...to have a code which only happens when the current animation is finished?
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Is it possible...

Postby Kalladdolf » Thu Sep 04, 2008 6:31 pm

Sure if you use the AnimationFinish event.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Is it possible...

Postby Azou » Thu Sep 04, 2008 6:45 pm

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?
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Is it possible...

Postby Kalladdolf » Thu Sep 04, 2008 7:30 pm

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)
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Is it possible...

Postby Azou » Sat Sep 06, 2008 12:22 pm

Wow!Thanx!With that,my game demo will soon be ready!
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron