Kategorie: Partikel
Ab Engineversion: 5.3.3 OC
Particles_Colored
Beschreibung
Creates a colored version of another particle definition.
Syntax
proplist Particles_Colored(proplist prototype, int color1, int color2);
Parameter
- prototype:
- Particle prototype of which a colored version is returned.
- color1:
- RGB color in format 0xRRGGBB
- color2:
- [opt] Secondary color. If given, particles are created with a random color between color and color2.
Anmerkung
See the particle documentation for further explanations of the particle system.
Beispiel
CreateParticle("MagicSpark", 0,0, PV_Random(-10,10), PV_Random(-10,10), PV_Random(10,50), Particles_Colored(Particles_Spark(),0xff0000,0x00ff00), 15);
Creates 15 particles with coloration varying between red and green.
Siehe auch: CreateParticle