Feature Request: Get Current Time
Deeeds last edited by Deeeds
For everything involving timing the activities of anything, creating lap timers, rewards based on speed of player performing a task, bonus calculations, etc etc...
Probably also needs a way to handle the values it generates... as they might be weird....
Help behaviours that store a lap other start time and then provide a duration report upon being told the lap or bonus round have been completed would be awesome.
Countdown helper behaviours probably very useful for any kind of time limited gameplay session/section/scene/bout or whatever.
This probably belongs in UI section... as that's where it will be used the most.
CCProgressTimer has a bunch of wonderful things to make this look cool, too.
And here is an amazing article about using polygons to do masking of a circular shape: https://web.archive.org/web/20161022024729/http://fancyratstudios.com/2010/02/programming/progresstimer-for-cocos2d/
Jack8680 last edited by
@Deeeds there's a get time behaviour, which can be used in seconds to do maths so you can calculate time elapsed. For a countdown you could just use a timer that subtracts from a variable, right? A behaviour could be useful, but I think we'd need a better behaviour finder first; there's a lot of behaviours right now
Deeeds last edited by
@Jack8680 So sorry!
I found it... under LOGIC.
I never thought to look in there for Get Time. Looked just about everywhere else...
Agreed, a behaviour finder is a must have. As would a broadcast sender, variable and in project behaviour finders. My project is starting to get to that size where I'm forgetting where things are.
Easy enough to do, in terms of UI, too... I think.
Pull down on the Behaviour list to open the search of hyperPad behaviours.
Pull down on the Property list to open a search within the project for behaviours, variables, broadcasters, receivers, etc.
Aidan Oxley last edited by
This post is deleted!