Inserts a temporary particle effect the the sprite layer. This function loads a *.par
file and add the particle system to the sprite drawing layer, removing the particle effect from the rendering stack as soon as it is finished. Example:
vector2 buttonPos(100, 200); PlayParticleEffect("button_sparkles.par", buttonPos, 0.0f, 1.0f);
This functions is useful to combine particle effects to the game UI.
Only temporary particle effects are allowed, which means that the Repeat count must be greater than zero. This function will fail on infinite particle effects.
Important! Unlike sprites and text drawing procedures, this function does not need to be called at every frame.