1
\$\begingroup\$

I'm having problem creating bullet pool in ashley ECS approach, because i'm using PooledEngine, everything is pooled. So I've done is I just use engine.createEntity(), engine.addEntity() and engine.removeEntity() to spawn a bullet. The problem is, the bullet is not behaving properly. In this memory-management bullet pool example, is working properly but not in ECS aproach. Can someone give me a brief explanation how do I pool a bullet in ashley ECS approach?

\$\endgroup\$
1
  • \$\begingroup\$ Are you perhaps holding a reference to the pooled object? This will cause many problems. \$\endgroup\$
    – Charanor
    Commented Aug 6, 2016 at 23:44

0

You must log in to answer this question.

Browse other questions tagged .