I’m a beginner at Andengine, but I have read quite a lot of tutorials and such, and I feel that I at least know the basics, but sometimes you run into problems …
I have done a GenericPool for my sprites. For this I have created a new class. When I’m about to use the pool I have to refer to the GenericPool class from my Main class, of course. But, then the methods in the GenericPool class must be static – which gives me an error – or am I wrong? How should I do this? Almost all of the tutorials I have found is for GLES1, so they are quite hard to follow …
If you need more information or code, just write!
Thanks in advance!
Could you post the part of the code where you use the GenericPool? To me it seems as if you didn’t actually create an instance of the pool and are calling methods on the class itself.
Look here for a nice tutorial on using object pool with AndEngine.
http://wiki.andengine.org/ObjectPool
Also, using object pool may not be necessary. I too was worried about garbage collector stopping the application for tens of milliseconds, but it just doesn’t happen to me when using AndEngine.