Commands:Tween commands
From SMTheming Wiki
Tween commands specify how an Actor changes, or "tweens", from its starting state to a new state.
A tween command must be specified in order for an object to change states.
Shared commands
These commands are available in all StepMania versions since StepMania 3.9.
| Command | Arguments | Example | Effect |
|---|---|---|---|
sleep
| Float | sleep,3
| Waits x amount of seconds, then changes state immediately. |
hiberate
| Float | hiberate,3
| Tells all children to pause tweening for x amount of seconds, then resume tweening. |
linear
| Float | linear,0.75
| Changes from one state to another at an even pace. |
accelerate
| Float | accelerate,1.5
| Starts tweening slowly and speeds up over time. |
decelerate
| Float | decelerate,0.9
| Starts tweening quickly and slows down over time. |
bouncebegin
| Float | bouncebegin,2
| Will apply a "bouncing" effect to the beginning of a set motion followed by a time amount. |
bounceend
| Float | bounceend,1
| Will apply a "bouncing" effect to the end of a set motion followed by a time amount. |
spring
| Float | spring,5
| Tweens past the destination state, tweens backward, then tweens forward to the final state. |
Commands that modify tweening
These commands allow you to change how the tweening itself is done.
| Command | Arguments | Example | Effect |
|---|---|---|---|
hurrytweening
| Float | hurrytweening,0.25
| Multiplies tween time by the amount given (the example would speed up tweening 4x) |
stoptweening
| stoptweening
| Stops tweening at the current state instead of finishing. | |
finishtweening
| finishtweening
| Stops tweening and goes directly to the final state. |
StepMania 4.0 commands
These commands are only available in StepMania 4.0 builds.
| Command | Arguments | Example | Effect |
|---|---|---|---|
smooth
| Float | smooth,1
| Tweens in a bezier curve that creates a movement that "smooths" itself out. |
compound
| (Tween, Float) (multiple) | compound,8,linear,0.25,smooth,0.75
| Combines several tweens together, given a tween type and percentage (example would tween linearly for 2 seconds, then accelerate for 6 seconds). |

