We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am making a GUI for a game, and I encountered some performance issues when animating buttons. I have a selector where the user can scroll through options horizontally across the screen.
The problem I am having is that each time I draw the button, the image does not disappear, so I need to reset the background. I have a saved image as the background, and images take a while to load in, so the frame rate drops significantly when the buttons are moving. I have also tried taking the center of the image, and only replacing the area where the buttons are moving, but it did not help.
Is there any way I can create an object that does not leave a trace, or a more elegant way of resetting the screen?