Start and stop particle animation

  ... discussions about development with the GLES1 branch of AndEngine.

Start and stop particle animation

Postby Davide » Sat Oct 09, 2010 10:01 pm

Is it possible to have two methods that start and stop the particle animation?
I ask this because I'm doing an app where I have to use it only for short times.
It's one ParticleSystem that start from top of the screen, width wide, in portrait orientation.
For now I simply move it out of the screen, but I think it's a wasting of resources, other than this I will add other animations and I don't want the app become slower.
Davide
 
Posts: 32
Joined: Wed Sep 08, 2010 1:14 pm

Re: Start and stop particle animation

Postby Nicolas Gramlich » Sun Oct 10, 2010 7:26 pm

Hi,

use:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.mParticleSystem.setParticlesSpawnEnabled(false);
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


This feature was introduced a couple of weeks ago, so you might need to update your andengine.jar .

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: Start and stop particle animation

Postby Davide » Mon Oct 11, 2010 1:24 am

Thanks.
Davide
 
Posts: 32
Joined: Wed Sep 08, 2010 1:14 pm

Re: Start and stop particle animation

Postby kitty » Sun Jul 03, 2011 9:29 pm

how to restart particles after setParticlesSpawnEnabled , is it possible?
kitty
 
Posts: 34
Joined: Thu May 19, 2011 4:47 pm


Return to GLES1

Who is online

Users browsing this forum: No registered users and 18 guests