how to have lots of storyboard scenes of the same type?

Hello all, 

All I’m trying to do is to display a series of storyboard scenes of the same type one after another (with only slight text differences between them) the number of these screens is only determinable at runtime and the user will swipe from one to another. So I have a “template” scene definition SceneTypeA.lua and the custom data is passed in via the options.params.

I want to keep the transition animations etc and also have the event.params populated… what would be the best way to do this?

The only way I can get this to work currently is to load a blank scene between content scenes…

Cheers

Ed. 

Hi Ed,

So you would like to have only one storyboard scene, for example a file called game.lua, which will be used multiple times in your game with slightly different variables and texts?

Take a look at this tutorial by Rob Miracle: http://www.coronalabs.com/blog/2013/08/20/tutorial-reloading-storyboard-scenes/

I haven´t watched it(!) but if he needs to use a “blank” storyboard scene to reload the scene - which is basically what you need to do I guess - then there might be no other way to do so.

Best,

Max

I’m not sure what you are doing now, but all you would probably need are 2 scene templates.  Every time the user swipes you should remove/purge the scene, then load the data into the new scene, and vice versa.  You can’t create new storyboard scene files at runtime. 

Hi Ed,

So you would like to have only one storyboard scene, for example a file called game.lua, which will be used multiple times in your game with slightly different variables and texts?

Take a look at this tutorial by Rob Miracle: http://www.coronalabs.com/blog/2013/08/20/tutorial-reloading-storyboard-scenes/

I haven´t watched it(!) but if he needs to use a “blank” storyboard scene to reload the scene - which is basically what you need to do I guess - then there might be no other way to do so.

Best,

Max

I’m not sure what you are doing now, but all you would probably need are 2 scene templates.  Every time the user swipes you should remove/purge the scene, then load the data into the new scene, and vice versa.  You can’t create new storyboard scene files at runtime.