Android Viewer Not Recognizing the Device's Height & Width?
ShineHouseGames
Member, PRO Posts: 100
I've built a universal build for the iPad/iPhone where the HUD buttons shift their X and Y values based on the device's screen size.
When testing with an android device however, the buttons' positions don't adjust at all.
So my question remains: why won't the buttons update their locations?
Comments
How are you firing the rule for the actors to move?
Coming from an iPad to iPhone I would use a rule that states,
If screen size height is < 768 change attribute self position Y to 600.
Otherwise do nothing.
It would be easier to assist you if you uploaded a screenshot of your rule.
And here's the zoomed in version:
Yeah, it does work for iOS but not for Android..
Any experience with this?
Bump
Try putting an empty scene at the start that only changes to your "real" first scene. There has been a bug with android for years where the first scene does not detect the height and width of the device.
I would be using a set amount, not screensizeheight/2.