SDL - animations not working properly on linux.
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
Popular Topics
Advertisement