Orchestrator
A timeline animator for Transform objects.
Constructor
Orchestrator(target: Transform | object)Parameters
target: Either a Transform object or an object with atransformattribute (like Sprite).
Properties
| Name | Description | Type |
|---|---|---|
finalized | Whether the orchestrator has been finalized | bool |
finished | Whether the animation has completed | bool |
playing | Whether the animation is currently playing | bool |
looping | Whether the animation should loop when finished | bool |
Methods
Then
then(effect: Effect) → OrchestratorAdd a single effect to the timeline.
Parameters
effect: The Effect to add.
Returns
Orchestrator : Self for method chaining.
Parallel
parallel(*effects: Effect) → OrchestratorAdd multiple effects to run in parallel.
Parameters
*effects: Variable number of Effect objects to run simultaneously.
Returns
Orchestrator : Self for method chaining.
Finalize
finalize() → NoneFinalize the orchestrator, preventing further edits.
Note:
Must be called before play(). Logs a warning if called multiple times.
Play
play() → NoneStart playing the animation from the beginning.
Note:
Logs a warning if not finalized or if there are no steps.
Pause
pause() → NonePause the animation at the current position.
Resume
resume() → NoneResume a paused animation.
Stop
stop() → NoneStop the animation and reset to the beginning.
Rewind
rewind() → NoneReset the animation to the beginning without stopping.