Timing animations

You must understand the Game Editor concepts, before post here.

Timing animations

Postby arcreamer » Wed Dec 11, 2013 4:41 am

Hi. What I am trying to do is have an animation timed so that maybe ever 5 seconds it will run the animation then wait another 5 seconds instead of doing it constantly. I'm sure there's some type of script that can easily accomplish this
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Re: Timing animations

Postby skydereign » Wed Dec 11, 2013 4:51 pm

You can use CreateTimer to create a five second timer for the actor, and put that into the animation finish event (also it sounds like you might want to use ChangeAnimationDirection in this event to stop the animation from repeating). Then in the timer event do the proper ChangeAnimation.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Timing animations

Postby arcreamer » Wed Dec 11, 2013 8:22 pm

Alright so on the animation finish Im creating a timer with a 5000ms for 5 seconds, although Im not sure what the rest of the caddy is asking. Dont know if I should just fill in the 5000 in the time box and keep the rest default? Another question is how would it know to automatically start the animation back up after the 5 seconds are over?
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Re: Timing animations

Postby arcreamer » Wed Dec 11, 2013 9:02 pm

Nevermind, I figured it out. I have two timers, which delete/create each other with each changing the animation after a couple seconds.
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron