How do I let my game run while unfocused / in different tabs

Get help using Construct 2

Post » Tue Jun 23, 2015 1:42 pm

How do I let my game run while unfocused / in different tabs? I need it in my idle shooter game.
B
6
S
2
Posts: 10
Reputation: 972

Post » Tue Jun 23, 2015 7:39 pm

On your project properties there is a option to toggle "Pause on unfocus"
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Wed Jun 24, 2015 12:51 am

It's for preview only. Doesn't work on exported games.
B
6
S
2
Posts: 10
Reputation: 972

Post » Wed Jun 24, 2015 12:37 pm

Anyone has any ideas?
B
6
S
2
Posts: 10
Reputation: 972

Post » Sat Jun 27, 2015 3:16 pm

Hi,

you can do it with timestamps.
There is the "browser-object" which can detect if your window is unfocused.
If you are interested in a full idle game script made with construct 2, here you can buy it very cheap:
codecanyon.net/item/clicker-upgrade-idle-game-html5-app/11666827
There are all these functions included (unfocused window, offline mode...)
Here the link to the game how it looks like:
kongregate.com/games/CreativeGamez/island-clicker

Best regards.
B
5
S
1
Posts: 21
Reputation: 419

Post » Sun Jun 28, 2015 1:57 pm

That's not what I mean. With timestamps your game doesn't really run, it's just compounding the last saved time and the time of loading, so simulations don't really run.
B
6
S
2
Posts: 10
Reputation: 972


Return to How do I....?

Who is online

Users browsing this forum: farsen, Kyu and 45 guests