I read the documentation about the moving the sprite based on time, and I have implemented it. But, not for my surprise, the code the way is shown in the documentation moves my sprite only every second. Is that really as it looks like?
Later I saw here in the forum someone mention the GetFrameTime which seems to do exactly what the code in the docs intend to do. Are really they equivalent.
Independent of the code used, I then tried to use floats instead of integers to move my sprite smoothly, but that make me think if I'm not wasting CPU cycles setting the same sprite position over and over. Should I check if x and y are the same before calling the function. Is it worth?
Any help is appreciated!
Thanks
----------
Paulo
http://www.mobilecreators.com