Allow a game to run only if connected to internet

Get help using Construct 2

Post » Mon Jan 11, 2016 8:12 pm

Hi,

Is there a way to run a game only if the device (mobile, tablet or PC) has internet connection?

As my game is free, with advertising, my concern is that if there is no internet connection on the device, the advertising will not be loaded, and i won't be paid for the ads.

I would like the game to not run, until the device is connected to the internet.

I thought about using browser object to check if it is online, but i think the game will have to do this check once in a while to be sure the ads will be loaded. Cause if it only checks it once, for example, on the game start, the user could just disable the internet connection after the start for it not to show the advertising.

Any help or suggestions will be greatly appreciated...

Regards!
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Mon Jan 11, 2016 11:11 pm

If you're going to check connection status, I'd suggest checking when the user attempts to start the game from the main menu. While in game, perhaps check every 30 seconds, kicking players back to the main menu if they're not connected.

I really wouldn't worry about it, though. In my experience, this has never been an issue, and a move like this does nothing to build trust with your players -- it just comes off as overly aggressive.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,106

Post » Mon Jan 11, 2016 11:23 pm

Hey linkman2004,

Thank you! I have to agree with you. I think you're right. It is my first game , so i think i'm over concerned about it.

Best regards!!!
B
14
S
5
Posts: 110
Reputation: 1,338


Return to How do I....?

Who is online

Users browsing this forum: Janaina and 2 guests