How do I start/stop a particle object (of which i have a reference to the obj, i can use ‘.hide(true/false);’ - but how do i stop the particles so that i can start it ‘clean’, as when making it hide(false) it still shows particles rolling around in the old position, so i would like to ‘start’ the process once it is in it’s new location, to be a little cleaner.
the code i use to move then show the particles in a new location (after previously being hidden for a time), ‘obj’ is just a reference to another irrelevant object.;
var winParticleObj = runtimeScene.getObjects(“winParticles”)[0];
winParticleObj.setX(obj.getX()+(obj.getWidth()/2));
winParticleObj.setY(obj.getY()+(obj.getHeight()/2));
winParticleObj.hide(false);
winParticleObj.start(); << - this is the one I don’t know.