My game’s screens are made up of the following components: a background image, a set of display objects (balls) drawn on top of the background, all the game elements drawn on top of that.
The balls are meant to move around the screen a bit, then fade away, then reappear in a new position and move around again. However, each time they reappear they will be using a random image (from a set of 3). In order to do this, I have to (as I understand it) remove the ball from the group, set it to nil, then call display.newImage again, and finally add it to the display group again.
The problem with this is that as the balls reappear they are added again to the display group, but further up the display hierarchy than when they were initialised, i.e. they end up being drawn ON TOP OF the game elements, instead of UNDERNEATH.
I tried adding a display group - ballGroup - to my main display group and then adding the balls to ballGroup, but that doesn’t work either.
Is there a way for me to constantly re-draw the balls always on top of the background, but underneath all other game elements? [import]uid: 26769 topic_id: 12906 reply_id: 312906[/import]