playMaker

Author Topic: Animation Clock in Playmaker  (Read 1596 times)

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Animation Clock in Playmaker
« on: February 18, 2016, 11:16:17 AM »
I have a simple (legacy) animation where a cube moves across the screen over 10 seconds (300frames at 30fps).

I want to have an onscreen clock which displays the elapsed time as the animation plays in the format HRS:MIN:SEC.

So at the end of the 300 frame animation, the clock would display 00:00:10.

At the end of a 3600 frame animation, the clock would display 00:02:00.

At the end of a 108000 frame animation, the clock would display 01:00:00.

What would be the best way to set this up using Playmaker?

(I have setup a simple clock which will correctly display the number of seconds of the animation.  But I don't want to show the time in a format of 75 seconds... I want to show a format of 00:01:15 instead).

Is there already some action for Playmaker which will display an animation clock as desired?

Thanks for any ideas!

Chizzler

  • Junior Playmaker
  • **
  • Posts: 67
Re: Animation Clock in Playmaker
« Reply #1 on: February 18, 2016, 11:23:29 AM »
Split your Gui into 2 elements,  Seconds & Minutes.  Add a check each frame on your current clock "If seconds is equal or greater than 60, add 1 to minutes and set seconds to 0"

There's probably a better way, but that'd be my first thought.

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Re: Animation Clock in Playmaker
« Reply #2 on: February 18, 2016, 03:39:06 PM »
Thanks very much for the ideas.  I am currently trying to make this work but still haven't had success in making the Minutes and Seconds adjust properly.  Will keep at it.

Thanks again.