Skip to content Skip to sidebar Skip to footer

Erase An Object From Canvas

I am trying to develop an application and i want the sprites to erase once they reach the end. I am using arraylist to handle my sprites on a canvas. I want the sprites to erase th

Solution 1:

Should you not be using the line rockSprites.remove(sprite) rather than using rockSprites.remove(this)?

Since it's not listed, I am going to assume that your render phase actually uses the rockSprites ArrayList(?) to determine what rock sprites should be put on the canvas?


Post a Comment for "Erase An Object From Canvas"