rex_duration
Introduction
Execute callback during duration. A duration behavior could have many durations.
It is used to "run trigger every X second, persist Y second", or "turn on the switch, then turn off after Y second".
Execute callback during duration. A duration behavior could have many durations.
It is used to "run trigger every X second, persist Y second", or "turn on the switch, then turn off after Y second".
Start duration
Call "Action:Start" to start a duration.
Call "Action:Start" to start a duration.
- The 1st parameter is duration name, it is also the name of "Condition:On start", "Condition:On interval", "Condition:On end".
- 2nd parameter is "persist duration time", in seconds. When duration started, "Condition:On start" will be triggered. After this persist duration time, "Condition:On end" will be triggered.
- 3rd parameter is "interval time", in seconds. When duration started, "Condition:On interval" will be triggered every interval time.
Force to end
"Action:Force to end" will force the duration run to end. "Condition:On end" will be triggered if "Condition:On start" had been triggered before. i.e. turn off the switch if it had been turn on before.
"Action:Force to end all" could force all durations to end.
"Action:Force to end" will force the duration run to end. "Condition:On end" will be triggered if "Condition:On start" had been triggered before. i.e. turn off the switch if it had been turn on before.
"Action:Force to end all" could force all durations to end.
Pause, resume, and cancel
"Action:Pause", "Action:Resume" could pause or resume the duration.
"Action:Cancel" could cancel the duration, it will not trigger "Condition:On end".
"Action:Pause", "Action:Resume" could pause or resume the duration.
"Action:Cancel" could cancel the duration, it will not trigger "Condition:On end".
Sync timescale
All durations could be affected by timescale of this instance, if "Sync timescale" sets to "Yes" in properties table. It is another way to pause or resume all durations, or slow down/go fast all durations. In other words, set "Sync timescale" to "No" could pause the sprite without pausing all durations.
These durations will also be affected by timeline object.
All durations could be affected by timescale of this instance, if "Sync timescale" sets to "Yes" in properties table. It is another way to pause or resume all durations, or slow down/go fast all durations. In other words, set "Sync timescale" to "No" could pause the sprite without pausing all durations.
These durations will also be affected by timeline object.