Hi,
aerobowl wrote:im abit confuse where would be the best place to update spritegroup or add/remove sprites from spritegroup?
for the moment i detach, make new spritegroup and attach it back in scene's onUpdate
thou working but not too sure is that the good way.
It was the only way up to the changeset I just commited. I kind of forgot to add remove methods, as I hadn't needed them for the Benchmark I did.
Changeset:
http://code.google.com/p/andengine/sour ... 2e20d696d9The andengine.jar from the AndEngineExamples is also updated.
salami wrote:I used SpriteGroup with an ObjectPool and it worked ok, only problem was that it took too long to make sprites invisible.
I attached a SpriteGroup to a scene and in onAllocatePoolItem() i added a sprite to the SpriteGroup. In onHandleRecycleItem(Sprite) I set sprite.setVisible(false).
Is there a way to make sprites disappear faster?
When calling setVisible(false) the update is reflected on the very next frame being drawn!
Best Regards,
Nicolas