SDL - animations not working properly on linux.

Started by
-1 comments, last by Phoresis 16 years, 11 months ago
I'm using the following code to animated some sprites in a 2d game: if(mLastupdate+pause*mSpeed < SDL_GetTicks() && animating) { mFrame++; if(mFrame > 11) mFrame = 11; mLastupdate = SDL_GetTicks(); } This works fine on Windows, but when using SDL on linux, sometimes the animations don't play. Any ideas?

This topic is closed to new replies.

Advertisement