Tweens & Timers Functions - VsFoxaTeam/FNF-Unfulfilled-Journey-Foxa-Engine GitHub Wiki
Click here to see the list of Tween Eases.
This will change the x value of the object with a tween.
If the tween is finish it will do a callback to onTweenCompleted(). And if you use the same tag this will cancel the tween.
-
tag- If the tween has been completed this do a callback ofonTweenCompleted(). -
vars- The object tag or object variable name. -
value- The new value to be set for tween to end. -
duration- The amount of time that the tween will last. -
ease- The ease that will be played on the tween, for more examples go to the link on top.
Example: doTweenX('bfScaleTweenX', 'boyfriend.scale', 1.5, 1, 'elasticInOut') This will tween boyfriend scale to 1.5.
This will change the y value of the object with a tween, works the same as doTweenX().
This will change the angle value of the object with a tween.
This will change the alpha/opacity value of the object with a tween, Goes form 0 to 1.
This will change the zoom value of the object with a tween.
-
vars- Instead with a object tag or object variable name it should be either:camGame,camHUDorcamOther.
Example: doTweenZoom('camTween', 'camGame', 3, 1, 'linear') This will tween the cam to zoom in, after that it will return back to normal.
This will change the color value of the object with a tween. (Must be a Hexadecimal Color Code)
-
targetColor- The color the object will have when the tween ends
Example: doTweenColor('bfColorTween', 'boyfriend', 'FF0000', 1, 'linear') This will tween boyfriend color to red.
Runs a timer with a determined duration and loops count. If you use the same tag this will cancel the tween.
-
tag- If the tween has been completed this do a callback ofonTweenCompleted(). -
time- An optonal value, how much duration until it will end the timer, Default value is1 -
loops- An optional value, how many loops should it do. If set to0it will loop infinitely, Default value is1.
This will change the x value of the note with a tween, works the same as doTweenX().
-
tag- Once the tween is finished, it will do a callback ofonTweenCompleted(tag) -
note- The Member ID of the note to be tween, Opponent:0,1,2,3and Player:4,5,6,7. -
value- Target value on the tween end -
duration- The amount of time that the tween will last. -
ease- The ease that will be played on the tween, for more examples go to the link on top.
Example: noteTweenX('note4TweenX', 4, 250, 1.5, 'linear') This will tween bf left note to 250.
This will change the y value of the note with a tween.
This will change the angle value of the note with a tween.
This will change the alpha/opacity value of the note with a tween, Goes form 0 to 1.
This will change the direction value of the note that will be coming to the note strum with a tween.
Example: noteTweenDirection('note5TweenDirection', 5, 0, 1.5, 'linear') This will make the note come to the left
Cancles the tween that is playing currently.
Cancles the timer that is playing currently.
