Iphone game problem, please help ^^ !

Non-platform specific questions.

Iphone game problem, please help ^^ !

Postby alexandrefredenucci » Thu Aug 05, 2010 6:34 pm

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 ?
alexandrefredenucci
 
Posts: 58
Joined: Wed May 12, 2010 7:33 am
Location: France
Score: 15 Give a positive score

Re: Iphone game problem, please help ^^ !

Postby savvy » Thu Aug 05, 2010 8:53 pm

that shouldnt happen, so are you holding the left click down and after the animations gone through once, its changing to the other one?
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Iphone game problem, please help ^^ !

Postby rykein » Thu Aug 05, 2010 10:04 pm

Code: Select all
ChangeAnimation("bear", "head", STOPPED);

If you want a certain frame set it manually with animpos.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 6 Give a positive score

Re: Iphone game problem, please help ^^ !

Postby alexandrefredenucci » Thu Aug 05, 2010 10:33 pm

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.
alexandrefredenucci
 
Posts: 58
Joined: Wed May 12, 2010 7:33 am
Location: France
Score: 15 Give a positive score

Re: Iphone game problem, please help ^^ !

Postby rykein » Thu Aug 05, 2010 10:58 pm

Mouse button down changes the animation. Animation Finish event for head to change animation to standby.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 6 Give a positive score

Re: Iphone game problem, please help ^^ !

Postby alexandrefredenucci » Thu Aug 05, 2010 11:47 pm

Thank you rykein ! it's work :)
alexandrefredenucci
 
Posts: 58
Joined: Wed May 12, 2010 7:33 am
Location: France
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest