Hello guys.
I am making a simple 2D game in Unity for Android. In that game the movement of a couple of objects is controlled by the following line:
transform.position = new Vector3(transform.position.x + speed * time.deltaTime, transform.position.y, transform.position.x);
But when I test the game on different mobile phones the resulting speed is different. For instance, on one phone it moves faster and on the other one slower. I think the better the phone the slower it moves. Would you know what could be the cause of this and how should I fix it?
Thanks in advance.