Is on mobile?

Get help using Construct 2

Post » Tue Aug 30, 2016 7:30 pm

I'm not finding any reasonable methods to determine if a web game is being played on a mobile device.
Has anyone found a way?
If not can we get one implemented?
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Tue Aug 30, 2016 7:48 pm

newt wrote:I'm not finding any reasonable methods to determine if a web game is being played on a mobile device.
Has anyone found a way?
If not can we get one implemented?


Is the Is On Mobile system expression no good?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,481
Reputation: 59,748

Post » Tue Aug 30, 2016 8:54 pm

OK, thanks.
Thought there was something, but it's not in the browser plug apparently.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Wed Aug 31, 2016 10:24 am

I am skeptical of relying on this and wonder if the system condition ought to exist at all. The question is "what defines mobile?" Most people would say a tablet qualifies, but then what if you add a keyboard? Then a mouse? Now you have a laptop, which most people would say qualify as a desktop type system. What about a large phone with a mouse and keyboard attached? Where do you draw the line? If you force a touch-only UI on these devices, aren't you ignoring the fact they can type and use a mouse?

IIRC the condition basically checks if it's a "mobile OS", i.e. Android, iOS, Windows Phone (which now is just part of Windows 10, making the distinction even blurrier). But note those devices can also run in what is essentially a desktop mode.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

Post » Wed Aug 31, 2016 12:58 pm

Unfortunately I'm working with third parties, and they only work on mobile.
I'd try to find out how they define mobile, but that really won't give me a solution, as they don't offer a way to determine if its working or not.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests