0 votes

Hello there. I hope everyone is doing fine.

I am currently working on a mobile games that uses math on a lot of coordinates. I'd like to ask the following: Does exporting the game mess up with those coordinates? Especially that mobile devices have different resolutions ( I am using keep / 2d for this project ). For example, Is point A(250,300) in the editor the same point for all devices and all resolutions?

Hope I made sense. Thanks

Godot version 3.4.4
in Engine by (93 points)

1 Answer

+1 vote
Best answer

The coordinates are going to change for a mobile game because of those different resolutions. It may be best to design the game with variable resolutions in mind, i.e. using hard-coded x- and y-values should be avoided. Instead, look into checking the dimensions of the display so as to place objects.

More resources:
* FAQ about multiple resolutions
* Multiple resolutions
* Sizes and anchors (for a user interface)

by (2,462 points)
selected by

Thanks a ton, I'll keep this in mind.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.