Page 1 of 1

Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 6:34 pm
by alexandrefredenucci
I have animation problem for iphone game, i want play a animation without repeat it, if i touch the head of my character, then the head animation change for a standby animation until i re touch the head.

i made a script like that :

Mouse button down script :
ChangeAnimation("bear", "head", FORWARD);

Mouse button up script :
ChangeAnimation("bear", "standby", FORWARD);

the problem is if i dont let my finger of the head he play immediatly the standby animation without finish the head animation :/

do you now how to solve it ?

Re: Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 8:53 pm
by savvy
that shouldnt happen, so are you holding the left click down and after the animations gone through once, its changing to the other one?

Re: Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 10:04 pm
by rykein
Code: Select all
ChangeAnimation("bear", "head", STOPPED);

If you want a certain frame set it manually with animpos.

Re: Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 10:33 pm
by alexandrefredenucci
savvy & rykein Thanks for your reply !

it's hard for me to explain in english ^^

If i hold the left click down on the head, the animation repeat forever.
I want to play the animation only once when the mouse button is down, and then the animation change for the standby animation.

I work on a tamagotchi for iphone, imagine touch the head, he move the head and standby after.

Re: Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 10:58 pm
by rykein
Mouse button down changes the animation. Animation Finish event for head to change animation to standby.

Re: Iphone game problem, please help ^^ !

PostPosted: Thu Aug 05, 2010 11:47 pm
by alexandrefredenucci
Thank you rykein ! it's work :)