PlayMaker Help & Tips > PlayMaker Help
[SOLVED] How to make a timer count to 60 rather than 100
MrMitch:
I've noticed when using float values to make a timer that it counts to 100 then adds a 1 to the timer, if you look in the attached picture you'll see how i'm formatting it with the convert.
How would i go about making it count to 60 to add the 1 rather than 100?
kiriri:
do it manually. add 1 to seconds(int) , check if int = 60, then wait 1 sec if seconds is not 60 and then send an event to a state which converts int to string and then builds a string from seconds and minutes. If it is 60, send another event to another state. Have that state add 1 to minutes(int) and set seconds to 0. Then return to the first state .
Quite simple , really, just hard to explain since it involves multiple states :D
MrMitch:
--- Quote from: kiriri on June 04, 2012, 01:33:38 PM ---do it manually. add 1 to seconds(int) , check if int = 60, then wait 1 sec if seconds is not 60 and then send an event to a state which converts int to string and then builds a string from seconds and minutes. If it is 60, send another event to another state. Have that state add 1 to minutes(int) and set seconds to 0. Then return to the first state .
Quite simple , really, just hard to explain since it involves multiple states :D
--- End quote ---
Thanks for the brief on how it's done but i still don't know where to start.
Time is one of the things that gives me the biggest headache, for some reason the way things are worked often makes no sense to me at first.
Any further advice?
EDIT - After an evening away from thinking about the problem and some sleep i think i should be able to figure things out, thanks again for the brief :)
jeanfabre:
Hi,
have you found the solution? let me know if not, I'll do a working example ( don't hesitate to share a package if you feel that could help)
Bye,
Jean
MrMitch:
No i've not found the solution as of yet, a working example would be greatly appreciated Jean :)
Navigation
[0] Message Index
[#] Next page
Go to full version