Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Delay between Loop Cycles #44

Open
dexterdeluxe88 opened this issue Oct 30, 2023 · 0 comments
Open

[Feature Request] Delay between Loop Cycles #44

dexterdeluxe88 opened this issue Oct 30, 2023 · 0 comments

Comments

@dexterdeluxe88
Copy link

dexterdeluxe88 commented Oct 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant