[SOLVED] Game speed / animation delay

Started by Honza, Sat 23/02/2013 11:05:48

Previous topic - Next topic

Honza

How exactly is animation delay related to game speed?

I thought that game speed is the number of cycles per second and animation delay says how many cycles it takes to change from one frame to another. So if I have delay 2 and game speed 32, that should be 16 fps. With delay 3 and game speed 48, that's also 16 fps.

However when I tried those two settings with the same animation, the second one (delay 3, speed 48) looked noticeably faster. What am I missing here?

Khris

Let's assume that the animation delay specified by the programmer gets added to a base value of 1: 48/(3+1) > 32/(2+1)
I'm too tired to test this myself, but I assume something like that is happening.

Maybe the idea was that a delay of 0 means one animation frame per game frame. Consequently, a delay of 1 means the frame changes every other game frame, and so on.

Crimson Wizard

Quote from: Khris on Sat 23/02/2013 20:33:54
Maybe the idea was that a delay of 0 means one animation frame per game frame. Consequently, a delay of 1 means the frame changes every other game frame, and so on.
I think it is like that.

Honza

Khris: Just tested it, seems you're right. Thanks!

SMF spam blocked by CleanTalk