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? [import]uid: 74723 topic_id: 12666 reply_id: 312666[/import]

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. [import]uid: 71210 topic_id: 12666 reply_id: 46431[/import]