I'm currently working on a snake clone and I create body parts each time it eats food. So, I create a new Bitmap for each new body part. However, when I lose, I need to erase every parts I created except the head and tail of the snake.
I use stage:removeChildAt method to remove everything from the scene. Does it frees memory of those objects or do I have to do something special with them ?
Comments
I'll take your pooling method in consideration. Thanks again.
Likes: antix
my games: https://play.google.com/store/apps/dev?id=5762368610208429197
Слава Україні
Likes: Apollo14
Falling Animals | Breaky Wall | Exetor | Mini Putt Golfing | Ninja Fruit Master | Descent | Descent Infinity | Peaky Climb | Buzzy Beez