question

jnicholls avatar image
jnicholls asked

Reset SecondsToRecharge timer when user has maximum amount of currency

Hello,

I was wondering if there is anyway to reset the timer for SecondsToRecharge value. We have a virtual currency called hearts that gets subtracted when the user starts a level and gets added back if they complete the level. The problem is that we want to start the SecondsToRecharge timer when they fail a level so we can tell them how long it is until they get another heart. Right now if the user waits long enough to fail the level, the SecondsToRecharge timer could hit zero meaning that they do not lose a heart by failing the level.

Is there any way to reset SecondsToRecharge timer or what would the best way to implement this functionality so that when a user fails a level, a timer starts and at the end of the timer, it will add a heart to the user.

Justin

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

This is a known issue for which we'll have a fix as soon as we can. Please see this thread for a complete discussion of this issue: https://community.playfab.com/questions/12923/did-currency-recharge-mechanism-changed.html

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.