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

Advance sequence to target on timer/delay? #28

Closed
clarklab opened this issue Sep 4, 2024 · 3 comments
Closed

Advance sequence to target on timer/delay? #28

clarklab opened this issue Sep 4, 2024 · 3 comments

Comments

@clarklab
Copy link

clarklab commented Sep 4, 2024

Hey hey! Me again! I've scoured the docs (and tried with Copilot) to find a way to auto-advance a sequence to another target sequence after a certain delay. Is that possible? Pseudo code incoming:

{ 
	-- sequence 1
	title = "Teeth",
	axis = Panels.ScrollAxis.VERTICAL,
	backgroundColor = Panels.Color.BLACK,
	audio = {file = "teeth", loop = false },
	scrollType = Panels.ScrollType.AUTO,
        advanceTimer = {target = 4, delay = 3500 }
...

That advanceTimer is the bit I'm looking to solve for. My guess is the answer is maybe an advanceFunction, but it looks like those only work per panel, and I need the sequence to advance regardless of current panel. Any ideas?

@clarklab
Copy link
Author

clarklab commented Sep 4, 2024

A little bit of progress (in case anyone else stumbles here in the future), but still looking for the magic bullet. I've been able to use targetSequenceFunction and advanceFunction to dynamically change the target pretty easily, but it still seems to rely on user input to actual advance the sequence and land on the new target.

Still looking for a way to programmatically send player to target sequence, with no additional input, on a timer.

@cadin
Copy link
Owner

cadin commented Jan 2, 2025

Hi, sorry, somehow I didn't see this before.

I just posted a 2.0 update that fixes some cases where auto-advancing wasn't working for the final panel in a sequence.
So this should work now using targetSequenceFunction and advanceFunction like you said.

Try updating Panels and see if it works for you. To update, either pull the submodule with Git, or re-download the zip and replace all the files in libraries/Panels.

@cadin
Copy link
Owner

cadin commented Jan 11, 2025

Closing this for now. Please comment or reopen if you still have this issue.

@cadin cadin closed this as completed Jan 11, 2025
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

2 participants