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

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

php - Issues outputting data after prepared statement with loops -

javascript - How to pass a property by reference -