See manual -> effect, then the example code and you will/ should realize that the particle function used as an effect(...) parameter gets only called once for initialization, p.event (if any) every frame.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual