How do I countdown timer with a bar ?

Get help using Construct 2

Post » Wed May 06, 2015 8:35 pm

Hi guys,
I am just interested, if anoyne created (sure somebody has done it) countdown timer with a bar, what was the concept?
In this capx I am using built in ProgressBar, Rex Plugin for timer, boolean to start changing text only after button is pressed. What can be done to improve ? Can "Every tick" be changed on something less overloading the system ?
Image
https://www.dropbox.com/s/02fp8nqqqwb8qhq/bar.capx?dl=0
B
10
S
3
Posts: 25
Reputation: 709

Post » Wed May 06, 2015 9:09 pm

The every tick event doesn't really 'overload the system' not unless you're doing some heavy stuff on it.

Maybe something like this?
https://dl.dropboxusercontent.com/u/70605402/Timer.capx
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Wed May 06, 2015 9:54 pm

thanks briggybros
so the key is "9patch.Width - dt*10"
so Date.Timer vs Delta time (both are frame independent, I believe )
by overloading I meant launching many different Date.Timers for every user.
Also workaround could be Every X secs instead "Every tick"
B
10
S
3
Posts: 25
Reputation: 709

Post » Thu May 07, 2015 6:04 pm

@LabSimulator I would say that the every X seconds method would not be ideal as it would appear more jumpy.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests