0

I have a simple translation animation in an Android game I am developing. When I test it on several devices, it runs at very different speeds on 10-inch tablets, 7-inch tablets and smartphones.

What is the "state of the art" way of getting a uniform animation speed on different devices?

Thanks,

3
  • You're talking Android, presumably? So "just use Core Animation if on iOS" is a completely unhelpful part-answer? Commented Nov 12, 2013 at 0:43
  • 2
    this question need either more tags or edit to point out the domain more specifically Commented Nov 12, 2013 at 0:46
  • I added more details on my question. Commented Nov 12, 2013 at 1:44

2 Answers 2

1

I finally decided to use display.metrics to get the pixel density of the devices. Then I adjust the translation motion speed by dividing by the density value.

Still wondering if this is the "state of the art" way of controlling animation speed on various devices???

Sign up to request clarification or add additional context in comments.

Comments

0

Animation duration should be same on all devices. But since the dimensions change, also the visual "distance" changes ad that's why you have an impression that the speed is different.

Possible solution for this is to switch between different screen sizes and set different animation duration for them

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.