Editing XML/Projectile particle
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<?xml version="1.0" standalone="yes"?> | <?xml version="1.0" standalone="yes"?> | ||
− | <projectile-particle-system> | + | *<projectile-particle-system> |
− | + | ** <texture value="true" luminance="true|false" path=".../texture_name.bmp"/>A bitmap file used to map the alpha of the particles. | |
− | + | ** <model value="true|false" path=".../model_name.g3d"/> Model used as the projectile. | |
− | + | ** <primitive value="line|quad"/> | |
− | + | ** <offset x="0" y="0.2" z="1"/> Offset the origin of the attack; +X is to the right of the attacker, +y is above the attacker, +z is to the front of the attacker. Make no difference to the endpoint | |
− | + | ** <color red="1.0" green="0.5" blue="0.0" alpha="0.5" />; Starting color/transparency, ranges from 0-1 | |
− | + | ** <color-no-energy red="0.0" green="0.0" blue="0.0" alpha="0.2" />; Ending Color, same range | |
− | + | ** <size value="6" /> size of texture when particle is created | |
− | + | ** <size-no-energy value="4" /> size of texture when particle has emitted all energy | |
− | + | ** <speed value="0" /> The speed (Distance moved really) of the particle over their lifetime | |
− | + | ** <gravity value="0"/> How much particle are effected by gravity | |
− | + | ** <emission-rate value="1" /> The amount of particles emitted | |
− | + | ** <energy-max value="20" /> Maximum Energy | |
− | + | ** <energy-var value="0" /> Variation | |
− | + | ** <trajectory type="linear"> Trajectory types are mutually exclusive | |
− | + | *** <speed value="14"/> Speed of the projectile - negative values and 0 have interesting, but not terribly useful effects. | |
− | + | ** </trajectory> | |
− | + | ** <trajectory type="parabolic"> | |
− | + | *** <speed value="16"/> Speed of the projectile | |
− | + | *** <scale value="2.5"/> Height of the parabolic arc | |
− | + | ** </trajectory> | |
− | + | ** <trajectory type="spiral"> | |
− | + | *** <speed value="4.0"/> | |
− | + | *** <scale value="1"/> Width of the spiral | |
− | + | *** <frequency value="0.5"/> How often the spiral, uh, spirals | |
− | + | ** </trajectory> | |
− | + | ** (The 3 below are for the splash XMLs) | |
− | + | ** <emission-rate-fade value="3"/> Particles last longer with a lower number / disappear quicker with a higher number | |
− | + | ** <vertical-spread a="1" b="1"/> Not tested yet | |
− | + | ** <horizontal-spread a="0.5" b="0.3"/> Not tested yet | |
− | + | *</projectile-particle-system> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | The | ||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |