2

I'm developing a racing game. The speed is varying on different devices. I'm moving the background using a count to maintain constant speed.

But the speed is an issue. How to maintain a constant in all devices like nokia,samsung,etc. ?

I am using java.util.Timer API. Timer count duration varies in different devices.

gnat
  • 6,213
  • 108
  • 53
  • 73
  • are you using [java.util.Timer](http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/java/util/Timer.html "API javadocs")? – gnat Feb 11 '13 at 11:58
  • yes..am using a timer. Timer count duration varies in different devices. –  Feb 11 '13 at 12:16
  • 1
    This question is not specific to JavaME, and i think it better fits in http://gamedev.stackexchange.com/. Anyway, here's a very good [article on the topic](http://gafferongames.com/game-physics/fix-your-timestep/) – Mister Smith Feb 14 '13 at 10:02

0 Answers0