I’m not sure if I’m using display groups correctly, but here’s what I’m trying to do.
I’ve created a group that makes up a set of on screen controls. There are 4 buttons and a background image.
The buttons are just a left, right, thrust and fire. I’ve made an up and down state for each button.
Now, I just used a display.newImageRect to load each image.
What I want to do is if someone touches a button, say the left button, I want to swap out the currently display UP version with the DOWN one.
I decided to put them into a group so I can move the entire control around the screen, and maybe even shake it.
I can’t seem to figure out how to get the coordinates of the grouped images to replace, so I’m looking for advice on whether I’m approaching this correctly or if there is a better way to achieve what I’m after.
Thanks! [import]uid: 100618 topic_id: 32033 reply_id: 332033[/import]