Notification API

Discussion and feedback on Construct 2

Post » Sun Mar 30, 2014 7:21 am

Scirra, do you plan to add Notification API for browser plugin?

I noticed there a bell icon on my taskbar, it's Chrome notification, it would be useful for simulation games and others that use timers.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Sun Mar 30, 2014 1:36 pm

Would it really be useful? What kind of alerts would you want a game to bring up?

Also currently the engine stops running when it goes in to the background to save CPU and battery, so it would probably only be able to alert when you're already looking at it.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Mon Mar 31, 2014 9:47 am

@Ashley Doesn't engine preserve real time variables when it's unfocused? I guess we probably discard this idea.

the alerts were like when they notifty us about a new building is completed for by 4 hours
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Mon Mar 31, 2014 2:58 pm

Ashley wrote:Also currently the engine stops running when it goes in to the background to save CPU and battery, so it would probably only be able to alert when you're already looking at it.

Can we prevent this somehow? Especially with the new multiplayer features, it seems that the game will go wildly out of sync if you switch to another tab. This applies even in the desktop, I think, where the game goes to 1fps in the background.

Can you imagine if league of legends booted you if you alt-tabbed? Ugh.
B
36
S
8
G
8
Posts: 532
Reputation: 6,903

Post » Mon Mar 31, 2014 3:09 pm

The multiplayer engine already keeps the game alive when switching in to the background, but only when you're the host, since otherwise the game would hang for everyone. There shouldn't be any serious consequence to putting the tab in the background when playing as a normal peer. I would really hesitate to allow this in any other circumstances because it will drain battery, spin up laptop fans, and so on - it's obnoxious to leave a resource-heavy process running even when in the background.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Tue Apr 01, 2014 2:04 am

@Ashley why don't disable behavior and group events while the engine is running when it's unfocused?
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Tue Apr 01, 2014 10:03 am

Well, it does already, it disables everything.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772


Return to Construct 2 General

Who is online

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