playcanvas-tween icon indicating copy to clipboard operation
playcanvas-tween copied to clipboard

[Feature Request] Delay between Loop Cycles

Open dexterdeluxe88 opened this issue 1 year ago • 0 comments

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.

dexterdeluxe88 avatar Oct 30 '23 13:10 dexterdeluxe88