User Tag List

Results 1 to 6 of 6

Thread: Any way to find out the physical size of a device's screen? (not resolution)

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2014
    Posts
    243
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Any way to find out the physical size of a device's screen? (not resolution)

    Is there any way to find out the physical size of a device's screen? (not the screen's resolution)

    The reason I ask this is because I have a game where I display large texts using the string object and by switching paragraphs through code. The problem I'm having is that text will stop displaying completely after a certain limit is reached, and unfortunately that limit is directly dependent on the device's physical size, apparently.

    I have a large text with font 25 display well on all mobile phones, but when I put it on a tablet, it stops displaying it completely. After a certain number of tests, I realized that the bigger the screen, the smaller the text I can fit inside a string object before it bugs out.

    I want to modify the font size according to the device's screen's size, so for example in case the game is played on a 10 inch tablet, I lower the font to 16.

    The most I could do so far is check if the device is a tablet, and since tablets are all above 7 inches, I lower the font size only for them. But the difference between 7 inch tablets and 10 inch tablets is too big to ignore.

    So, does anyone know of a way to get the physical size of a device's screen?

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    use android plus
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2014
    Posts
    243
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Could you please tell me which of the events from android plus I can use to get the actual size of the device, or in what combination? From what I've tested all I could find was the screen's resolution. I thought maybe the depth would give me the screen density, but from what I saw, it only gave me the width of the screen.

  4. #4
    Clicker Fusion 2.5Android Export ModuleiOS Export Module

    Join Date
    Mar 2014
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a condition that detects if a tablet. Maybe that will help. I know there are values which you can return like size of screen in inches but I'm not sure how they work on a per device basis

  5. #5
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Guys really, there is a help



    ++++++++++++++++++++++++++++++++++++++++++++++

    You want us devs, feel right use the help files, they are hours and hours of works
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2014
    Posts
    243
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Omg, I can't believe I managed to miss that. I must have confused it with the window control object the first time. I've tested the get device screen size in inches function and it works perfectly for all my devices.

    I'm really sorry for wasting your time.

Similar Threads

  1. Replies: 2
    Last Post: 10th June 2015, 02:17 PM
  2. What resolution/screen size should I use?
    By Blizna in forum Android Export Module 2.5
    Replies: 6
    Last Post: 6th March 2014, 04:51 AM
  3. Device Physical Screen Size / DPI
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 10
    Last Post: 27th September 2013, 01:19 PM
  4. Device Screen Size
    By Jeff in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 20th December 2011, 08:47 PM
  5. Maintaining screen size resolution
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 7th December 2009, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •