Emitter emitted event

i want be able to play a sound every time an emitter particle is made. how do i do that?

Make sure the user interacts with the app first.

const aud = new Aud(); // whatever
const emitter = new Emitter({interval:.5, events:true}).center();

emitter.on("emitted", ()=>{
  aud.play();
});

thank you @abstract!

i didn't know that the default events parameter is set to false

1 Like