Timer behavior

Discussion and feedback on Construct 2

Post » Sun Aug 12, 2012 1:40 am

We have a few behaviors that handle time, Ease Tween, Event List, and Duration.
What would be nice is the ability to create a named timer at run time so that you could have several different actions at any given time.
Event list, and Duration are set up to do this, however, they lack triggers for picking individual instances, such as on "this named timer" start, or "that named timer" end of wait, and "foo named timer" end.
All of that can be accomplished using Ease Tween, and a Boolean comparison, but that complicates things quite a bit..

Any takers, thoughts?newt2012-08-12 01:40:58
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun Aug 12, 2012 4:41 am

Yeap, for a feature like a timer, which seems like something a lot of games will need. There should be a behavior plug-n-play and easy to access for everyone.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sun Aug 12, 2012 5:02 am

@newt

Duration could create and manage many one-shot timer in this behavior.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Aug 12, 2012 5:18 am

@rexrainbow
Yes it does, but it has only one trigger.
Whats needed is, on start, on end of wait, and on end as well.
Much like the Ease Tween behavior.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun Aug 12, 2012 5:28 am

@newt

Duration behavior need to connect with function plugin and it could assign 3 kinds of callback
- on start
- on interval
- on end

It means that duration behavior will call function when timer started, and ended.

See the sample in it's thread.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Aug 12, 2012 5:30 am

@newt

Maybe user likes dedicate condition in Timer/Duration behavior.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Aug 12, 2012 5:33 am

Yeah the extra conditions/triggers are needed to pick the instance the timer belongs to.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun Aug 12, 2012 5:40 am

@newt

Hum... I will think this requirement, thanks.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Aug 12, 2012 7:39 am

Maybe my Time manager can do that for you?

You can create how many timer instances as you want, and it has couple of triggers such as "Is counter paused?", "Is counter finished?", "Is counter running?", "Is counter stopped?" and "Check counter value".

"Check counter value" trigger you can compare the current time/timer value if its equal, not equal, more or less than a given value.

These events/triggers can maybe give you more enough timer behavior functionality that you need?
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Sun Aug 12, 2012 7:54 am

Well the issue with that is picking.
Its fine for a single instance, or if you want every instance to use that event, but if you have multiple instances, that you want to be able to use different events then you will have to have some way to pick individual instances.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests