You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Definision of setChangeFPS() is wrong/confusing #106
The definition of setChangeFPS() in SpriteImage.js is wrong or at least confusing:
/**
* Set the elapsed time needed to change the image index.
* @param fps an integer indicating the time in milliseconds to change.
* @return this
*/
setChangeFPS:function (fps) {
this.changeFPS = fps;
return this;
}
Here, the integer indicates the time between frames. That is, high integer, fewer frames-per-second (FPS). Low integer, higher FPS.
That is, the parameter does exactly the opposite of one would expect.
Well, either you change the behavior of the method such that it actually sets the frames per second, or you rename it for something like setAnimationSpeed(timeDelta).
Activity
hyperandroid commentedon Jan 13, 2013
Maybe.
Do you have a suggestion for a new method ?
Thanks.
arnuschky commentedon Jan 13, 2013
Well, either you change the behavior of the method such that it actually sets the frames per second, or you rename it for something like setAnimationSpeed(timeDelta).
hyperandroid commentedon Jan 15, 2013
Didn't i told previously i love pull requests ?
Feel free to submit your own.
And don't remove the original method :)
thanks.