How do I left timer continue when not shown

Get help using Construct 2

Post » Tue May 06, 2014 5:32 am

Hello. I am a new guy. This maybe easy to answer:

I am using System every x second condition to do a count down. I found that when I switch to a different tab, the count down stop. I know this might be a "feature", but I don't want it to stop. How do I do that? Thanks!
B
5
S
1
Posts: 10
Reputation: 472

Post » Tue May 06, 2014 5:58 am

Hello friend:
Try this ...
Count_Down.jpg


Download the example from here
https://dl.dropboxusercontent.com/u/19024090/CountDown.capx
You do not have the required permissions to view the files attached to this post.
B
42
S
10
G
2
Posts: 111
Reputation: 3,773

Post » Tue May 06, 2014 6:20 am

I'm guessing by "tab" you mean layout. To have a timer across layouts, you can use a global object with the Timer behaviour. Have a separate event sheet with the timer code, and include that event sheet on each layout's event sheet.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Tue May 06, 2014 3:29 pm

Hello friends. I am glad so many people help here.

Tab I don't mean layouts. I just click the run button and it shows in firefox. When I switch to another tab in firefox. Or I minimize the firefox browser, the timer stop. Can I let it run when it not visible?

Thanks!
B
5
S
1
Posts: 10
Reputation: 472

Post » Wed May 07, 2014 4:31 am

found it, look like I can use wallclocktime to implement it. Thanks.
B
5
S
1
Posts: 10
Reputation: 472

Post » Wed May 07, 2014 5:34 am

I'm kinda new, but maybe you have 'pause on unfocus' set to yes? this is in the configuration settings for your project - click on the canvas then click 'view' next to project properties
B
7
S
3
Posts: 4
Reputation: 616

Post » Wed May 07, 2014 3:39 pm

No, it's not that, even i set to no, it will stop when the game is no on foreground.
B
5
S
1
Posts: 10
Reputation: 472


Return to How do I....?

Who is online

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