Spawns a visual effect at the specified position. Unlike hit fx, dust effects don’t pull from a list and instead just displays sprite indexes directly.
| Argument | Type | Description |
|---|---|---|
| x | :real | The x position to spawn effect at |
| y | :real | The y position to spawn effect at |
| sprite_index | :real | The sprite index to use. |
| length | :real | The amount of time it takes for the animation to play, in frames. |
Example, called from update.gml:
// spawns a visual effect at the beginning of 4th Fspecial window:
if (attack == AT_FSPECIAL && window == 4 && window_timer == 1) {
spawn_dust_fx( x, y, sprite_get("custom_sprite"), 26 );
}
