particlefx.script 288 B

1234567
  1. function init(self)
  2. --Start playing the particle effect in component "particles" in this game object:
  3. particlefx.play("#particles")
  4. -- Animate this object position on Y axis up and down forever
  5. go.animate(".", "position.y", go.PLAYBACK_LOOP_PINGPONG, 600, go.EASING_INOUTSINE, 4)
  6. end