playMaker

Author Topic: Countdown Timer Much Faster Using Variable[SOLVED]  (Read 3263 times)

scottb9239

  • Playmaker Newbie
  • *
  • Posts: 4
Countdown Timer Much Faster Using Variable[SOLVED]
« 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
« Last Edit: August 17, 2015, 12:38:06 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Countdown Timer Much Faster Using Variable
« Reply #1 on: August 09, 2015, 08:00:04 AM »
Hi,
are you using my custom action "countdown timer" or another action?

scottb9239

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Countdown Timer Much Faster Using Variable
« Reply #2 on: August 09, 2015, 12:00:51 PM »
Hi, yes it was just called "Countdown Timer", so if that was yours then yes.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Countdown Timer Much Faster Using Variable
« Reply #3 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?

scottb9239

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Countdown Timer Much Faster Using Variable
« Reply #4 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Countdown Timer Much Faster Using Variable
« Reply #5 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 :)