Skip to main content
GameDev.net gamedev.net
🔒 Locked

timer on mobile phone

Started by maximephan Dec 16, 2005 at 2:00 AM 1 replies 550+ views
Original Post
maximephan
maximephan
hi everyone, I'm trying to make game on mobile phone using midp 2.0. I would like to know if there is some timer system. (for exemple, if I want to control the speed of some enemy, or animation speed). Is there some timer function something like that: nexttime = timeGetTime() + animation_speed curtime = timeGetTime() if (curtime > nextime) { //increase animation frame } render() if there a standard way to do on mobile phone. Thanks a lot.
shmoove
shmoove
System.currentTimeMillis() returns the current time in milliseconds in a long.

shmoove
rohitgonsalves
rohitgonsalves
System.currentTimeMillis()

Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
MOV AL, 0x00MOV AL, ME

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.