Can you keep a moving background throughout scenes?

Can you keep a moving background throughout scenes? Could be elementary…

I created a sky with semi-random moving clouds – hoping to use storyboard to switch between scenes while maintaining the cloudy sky. I almost envision the storyboard as an overlay over the sky…

Any thoughts?

Thanks!

[import]uid: 19765 topic_id: 26754 reply_id: 326754[/import]

Put it outside the storyboard object in the main.lua ? [import]uid: 5578 topic_id: 26754 reply_id: 112295[/import]

I just did the exact same thing – meaning, added the persistent, animating background in main.lua. The trick is, add the animating background objects before you do storyboard.gotoScene, and then you send the background objects to the back of the scene, like so:

  1. Create, say, bgGroup in main.lua, and add all background objects to bgGroup.
  2. Call a function that starts the animation.
  3. Call storyboard.gotoScene(“menu”, “fade”, 400)
  4. Then do bgGroup:toBack()

Naomi [import]uid: 67217 topic_id: 26754 reply_id: 112346[/import]

Thanks! You rock!! [import]uid: 19765 topic_id: 26754 reply_id: 112366[/import]