Ensure browser compatibility

Get help using Construct 2

Post » Sat Sep 01, 2012 4:37 am

What is the best way to ensure browser compatibility with the audio and webgl? I've toyed around with the idea of checking the useragent string against the list of strings I found online but that would be a lot of lines of or conditions. Is there a simple way to verify that the user has say chrome 9.0+? I want to check this at startup and if an incompatible browser is found I want to display a link to one of the approved browsers.

Thanks in advance,

Lance
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Tue Nov 06, 2012 10:58 pm

I "think" you can use the SYSTEM EVENT "Effects are Supported". Then (if true) add the ACTION to go to your game layout. If not, then load a layout that says something like "This game uses WebGL effects, please use a browser that supports WebGL such as Chrome" - with a nice link or something.

I am going to try that as I only want my game to run with WebGL effects.

Not sure if his will help with your audio "check list" - but maybe it will get you closer.

There is probably something in the CSS/HTML/Index file that could be modified too - but that is beyond my skill set. lol
B
8
S
2
G
3
Posts: 71
Reputation: 3,066

Post » Tue Nov 06, 2012 11:53 pm

You should definitely avoid telling people they can't play the game if possible - performance may be worse and audio support may be more basic, but you should still let them play the game.

If your game absolutely must have WebGL effects to even work at all, use the "Effects supported" system condition.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to How do I....?

Who is online

Users browsing this forum: Zebbi and 21 guests