How do I check if it uses a smartphone or tablet?

Get help using Construct 2

Post » Wed May 28, 2014 8:56 pm

Hi! It's my first question.
I am creating a new game and i need knows how do i check if it uses a smartphone or tablet, because the form of the game it is very diferent between them.

Any idea?

I searched this, but its didnt found anything . I ask sorry if this topic should not be here.

Thanks

QUESTION.png
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 4
Reputation: 183

Post » Wed May 28, 2014 11:59 pm

You have a condition under the system tab for on mobile device and for specific platforms.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Thu May 29, 2014 12:56 am

I don't think you can reliably differentiate a tablet from a phone (even from a hardware standpoint it is not that clear)

best way would be to ask the user or make the game works the same in both modes.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Thu May 29, 2014 1:21 am

One way to check for specific devices is to "on start of layout " do a system compare for the windowWidth/windowHeight.

So it would be something like

On start of layout -->
windowWidth = 640
windowHeight = 960 ----> set text "iPhone 4"

windowWidth = 768
windowHeight = 1024 ----> set text "iPad 2"
B
12
S
2
G
1
Posts: 26
Reputation: 835

Post » Fri May 30, 2014 8:36 pm

Thank you very much to all for responding.
Lof, which is the tag system?

If you can not try preguntaler the user as Aphrodite said

If anyone else has an idea I thank

Sorry for my little english! :=)
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: jasontoups, raptor0555 and 1 guest