Basics

Let's start with the 'first part' and write a simple emitter function:

action partikel1 {
   while (1) {
      emit (1,my.pos,test_particle1);
      wait (1);
   }
}

As you can see, this emitter function is really simple, it only includes an endless loop (since we want to create particles over and over again), an emit command and a wait (1); instruction. 
The wait instruction is crucial, otherwise we would get an 'endless loop' error message from the engine.

You just have to assign this function to an emitter object in WED. The created particles will automatically start with executing the test_particle1 function.

next page >>