spawn_dust_fx

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.

ArgumentTypeDescription
x:realThe x position to spawn effect at
y:realThe y position to spawn effect at
sprite_index:realThe sprite index to use.
length:realThe 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 );
}