Description
I've been working on some projects using FlxTween
for in-game animations, but they always update and render at the same frame rate as the game, for example, 60 FPS. This makes them look way too smooth compared to the rest of the animations.
It would be reuseful to have a framerate
option for tweens so they can achieve a more cartoony look independent of the game's actual framerate, depending on the developer's preference, perhaps rendering at 24 FPS.
It could work something like this:
var sprite = new FlxSprite();
FlxTween.tween(sprite.scale, {x: 4, y: 4}, 1, {
framerate: 24
// As an idea, maybe it could work similarly to FlxG.drawFramerate and FlxG.updateFramerate?
// drawFramerate: 24
// updateFramerate: 60
});