flixel icon indicating copy to clipboard operation
flixel copied to clipboard

FlxTween framerate option

Open cyn0x8 opened this issue 10 months ago • 3 comments

implements / closes #3367

cyn0x8 avatar Feb 20 '25 07:02 cyn0x8

I think you could change the capitilzation to "frameRate" in favor of FlxAnimation

Raltyro avatar Feb 20 '25 12:02 Raltyro

I think you could change the capitilzation to "frameRate" in favor of FlxAnimation

good to be consistent, but it seems flixel is already inconsistent on this https://github.com/HaxeFlixel/flixel/blob/dev/flixel/FlxG.hx#L127-L134

https://github.com/search?q=repo%3AHaxeFlixel%2Fflixel%20framerate&type=code flash/openfl use capital R, I personally like lowercase, when we come to a decision we should rename the existing ones in a different PR

Geokureli avatar Feb 20 '25 14:02 Geokureli

fair enough, that works too

Raltyro avatar Feb 20 '25 22:02 Raltyro

Any updates on this? Been working on a project and the need for variable tween frame rate has come up as a must have Would rather not shadow the current implementation for my project but tweens honestly don't seem very easy to extend

DetectiveBaldi avatar Sep 16 '25 15:09 DetectiveBaldi

Any updates on this? Been working on a project and the need for variable tween frame rate has come up as a must have Would rather not shadow the current implementation for my project but tweens honestly don't seem very easy to extend

oh to be honest i completelyy forgot this pr existed ill rebase and try to make progress today

cyn0x8 avatar Sep 16 '25 16:09 cyn0x8

the number of updates appears to be floor(max(duration * tweenfps, duration * gamefps - 1))

cyn0x8 avatar Sep 21 '25 03:09 cyn0x8