Flickers an object. See FlxTween.flicker()
Static methods
The default tween function of flicker tweens
Parameters:
tween | The tween handling the flickering |
---|
Variables
The object being flickered
Whether the object will show after the tween, defaults to true
@:value(0.08)read onlyperiod:Float = 0.08
How often, in seconds, the visibility cycles
@:value(0.5)read onlyratio:Float = 0.5
The ratio of time the object will show, default is 0.5
,
meaning equal times visible and invisible.
Controls how the object flickers over time
Methods
Flickers the desired object
Parameters:
basic | The object to flicker |
---|
duration | Duration of the tween, in seconds |
---|
period | How often, in seconds, the visibility cycles |
---|
Inherited Variables
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
Seconds to wait between loops of this tween, 0 by default
The manager to which this tween belongs
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.
Seconds to wait until starting this tween, 0 by default
The total time passed since start
Inherited Methods
Immediately stops the Tween and removes it from its
manager
without calling the onComplete
callback.
Yields control to the next chained Tween if one exists.
Immediately stops the Tween and removes it from its
manager
without calling the onComplete
callback
or yielding control to the next chained Tween if one exists.
If control has already been passed on, forwards the cancellation
request along the chain to the currently active Tween.
Starts the Tween, or restarts it if it's currently running.
Specify a tween to be executed when this one has finished
(useful for creating "tween chains").
How many seconds to delay the execution of the next tween in a tween chain.