Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
VintageStory offers a variety of different types of particles. This tutorial will explain you how to create particles in code and show you some of the possibilities. If you want to have an example of where to use them I either suggested you to the read about the block particles or about collectibles. <- Add links | VintageStory offers a variety of different types of particles. This tutorial will explain you how to create particles in code and show you some of the possibilities. If you want to have an example of where to use them I either suggested you to the read about the block particles or about collectibles. <- Add links | ||
== Spawn particles == | == Spawn particles == | ||
Line 165: | Line 163: | ||
=== Self Propelled === | === Self Propelled === | ||
=== | <syntaxhighlight lang="c#"> | ||
myParticles.minVelocity = new Vec3f((float) (rand.NextDouble() - 0.5), 1f, (float) (rand.NextDouble() - 0.5)); | |||
myParticles.SelfPropelled = true; | |||
</syntaxhighlight> | |||
[[File:Particles (selfpropelled).gif|300px]] | |||
= | === Die In Air/ Liquid === | ||
== | |||
Can be used for particles in water, which should disappear once they reach the surface. |