Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: scottb9239 on August 07, 2015, 11:54:03 PM

Title: Countdown Timer Much Faster Using Variable[SOLVED]
Post by: scottb9239 on August 07, 2015, 11:54:03 PM
Hi, I am using a Countdown Timer (shown on a HUD) to set a timer for completing a level of my game.  If I input a value of 500 in the "Time" slot it nicely counts down one number every second, 500... 499... 498 etc.

If I set a global variable to 500 (float) and use that instead, it starts at 500 as expected, but counts down extremely fast, getting to 0 in about three seconds (instead of 500 seconds).

I have a test package that shows the issue, but can't attach it due to the 512KB limit.

Any thoughts?

Scott
Title: Re: Countdown Timer Much Faster Using Variable
Post by: djaydino on August 09, 2015, 08:00:04 AM
Hi,
are you using my custom action "countdown timer" or another action?
Title: Re: Countdown Timer Much Faster Using Variable
Post by: scottb9239 on August 09, 2015, 12:00:51 PM
Hi, yes it was just called "Countdown Timer", so if that was yours then yes.
Title: Re: Countdown Timer Much Faster Using Variable
Post by: djaydino on August 09, 2015, 07:40:27 PM
Hi,
i tried to repo you problem but everything seems to work fine here.

Can you send a package (upload it on dropbox or some other file website)
but don't add the playmaker folder pls.

what version of playmaker are you using?
Title: Re: Countdown Timer Much Faster Using Variable
Post by: scottb9239 on August 10, 2015, 06:34:22 PM
It looks like I figured out the issue, I was using the same timer float in the initial countdown that was also used to convert the float to a string for GUI display.  I guess this was confusing the system, makes sense now.

Thanks for looking into this, sorry I missed this, still quite new at this.  :)
Scott
Title: Re: Countdown Timer Much Faster Using Variable
Post by: djaydino on August 12, 2015, 06:03:46 AM
Hi,
no problem.
it is better to report something that might not be, than not reporting at all :)

Can you please add [SOLVED] in your Subject :)