playcanvas-tween
playcanvas-tween copied to clipboard
[Feature Request] Delay between Loop Cycles
I'd like to have the ability to specify a delay between loop cycles.
Currently we are achieving this within the callback similar to:
.on("loop", () =>
{ this.movementTween.pause();
this.timeOut = setTimeout(() =>
{
this.movementTween.resume();
}, this.movementDelay * 1000.0);
})
But this is quite hacky. Would prefer to have a .loopDelay(seconds) method instead.