Animation question.

Talk about making games.

Animation question.

Postby The achievement » Thu Jun 01, 2006 6:37 pm

Hi guys, is there way to press a button, have my hammer do the animation i want, then how do i make it go back to its original position. Like before i hit the button to change the animation.

Does anyone get that? i know it sounds confusing.
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby duracel92 » Thu Jun 01, 2006 7:41 pm

Key up event might help... the animation of the hammer will have to be short..
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby The achievement » Thu Jun 01, 2006 11:13 pm

Thanks duracel! that worked amazing. Thank you!
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby The achievement » Thu Jun 01, 2006 11:40 pm

wow, it worked for my first actor, but now my second actor, it only does the the second animation. not the first.
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby irblinx » Sat Jun 03, 2006 8:40 am

It sounds as if the "Animation Finish" event would be your best option. This event triggers when the chosen animation finishes, so you could put a change animation call in this event to go back to your original one as soon as the first animation has played through once.
irblinx
http://www.irblinx.me.uk/Crania.htm
Current projects: Crania deluxe for Mac, iCrania
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest