java - How to move particles independently from particle emitter in andengine -


i have working particle emitter attached entit. have when drag (move) entity emitter created partcles move well. emitter creates particles should move upwards, when idrag emitter right particles moved right well. understand because of attachment entity. achieve when particle shows independent emitter, can drag emitter , particle stays on original course.

thanks.

try attaching particle system scene , updating position (or emitter position) when sprite moves (in onmanagedupdate function).

you can try adding own iparticlemodifier , override onupdateparticle calculate proper position during update , set velocity/acceleration each particle. (see andengine cookbook)


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -