Skip to content

Commit

Permalink
FlxTween: add some docs for percent
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Aug 9, 2016
1 parent 179673f commit 3bdd6a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flixel/tweens/FlxTween.hx
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,19 @@ 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;
public var backward(default, null):Bool;

/**
* 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;

Expand Down

0 comments on commit 3bdd6a6

Please sign in to comment.