From 3bdd6a6099857f39204799ae4dc8c02016aa059d Mon Sep 17 00:00:00 2001 From: Gama11 Date: Tue, 9 Aug 2016 14:46:46 +0200 Subject: [PATCH] FlxTween: add some docs for percent --- flixel/tweens/FlxTween.hx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flixel/tweens/FlxTween.hx b/flixel/tweens/FlxTween.hx index 2f52231594..bb021aeb04 100644 --- a/flixel/tweens/FlxTween.hx +++ b/flixel/tweens/FlxTween.hx @@ -379,6 +379,11 @@ class FlxTween implements IFlxDestroyable public var onComplete:TweenCallback; public var type(default, set):Int; + + /** + * Value between `0` and `1` that indicates how far along this tween is in its completion. + * A value of `0.33` means that the tween is `33%` complete. + */ public var percent(get, set):Float; public var finished(default, null):Bool; public var scale(default, null):Float = 0; @@ -386,7 +391,7 @@ class FlxTween implements IFlxDestroyable /** * How many times this tween has been executed / has finished so far - useful to - * stop the LOOPING and PINGPONG types after a certain amount of time + * stop the `LOOPING` and `PINGPONG` types after a certain amount of time */ public var executions(default, null):Int = 0;