Host typegenerated
Sequence
Playing an object's sequences: choreography set up for it in the scene's Timeline, such as a title sliding in or a door opening, with named cues along the way.
8 members · engine 0.1.0
Sequence.cued(entity: Entity, cue: String) -> boolWhether an object's sequence reached the named cue on the last step, such as"landed". True for one step only.Sequence.is_finished(entity: Entity) -> boolWhether a sequence that does not loop has reached its end.Sequence.play(entity: Entity, sequence: String) -> unitPlays one of an object's sequences by name. Calling it again with the sequence already playing does nothing, so it is safe to call every frame.Sequence.playing(entity: Entity) -> StringThe name of the sequence an object is playing, or empty text.Sequence.restart(entity: Entity) -> unitStarts an object's current sequence again from the beginning.Sequence.set_speed(entity: Entity, speed: number) -> unitHow fast an object's sequences play: 1 is normal speed, 0 holds it where it is.Sequence.stop(entity: Entity) -> unitStops an object's sequence where it is.Sequence.time(entity: Entity) -> numberHow far into its sequence an object has got, in seconds.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b