Basically, what I do is:
public void update(int delta) {
time += delta;
if (time >= interval) {
time = 0;
index++;
}
//draws the sprite: someSpriteArray[index].draw();
}
The higher the FPS is, the faster the index variable increments.
Haha, call me dumb, but I’m out of ideas, I tried a lot of things to get it right, like multiplying by the current fps, among other nonsenses…
When I use the delta variable to multiply on movement stuff, like moving something, it works right.
I thought I only had to use the delta and everything would be goody-neat to go
Turns out to be that my entire life was a big lie. Any help is appreciated =o