How to update scene images?

Hello

When i am in game scene, some images will only be created out when player press a button.
Example:
In game, a treasure chest will generate "gold image" every few seconds. When a player tap on the "gold image", the "gold image" will disappear. If the player leave the game to menu without tapping "gold image", and resume the game, the "gold image" should be still there

- Do i need to return localGroup everytime i want to update the scene?
- What if the image disappears when player taps it? How do i remove it from director scene?

you can create a global variable flag to set whether gold image is shown or not. if the image is shown very frequently you can use isVisible property to show and hide the gold image.

views:1571 update:2011/10/12 18:33:00
corona forums © 2003-2011