storyboard.gotoScene() to the same scene?

Is it technically possible to goto the same scene from the one you’re in? I’ve set up a quick prototype and I’m not having any success with it.

I ask because I’m working on a game that uses many screens worth of map and I’m looking to simplify my set up. My original solution was to have a bunch of storyboard scenes that the player could transition to and from (like 100+, yeow!).

This works for a “fixed” world but I’ve realized I want a programmatic solution so that each player’s experience is unique.

If it’s not possible to goto the same scene that you’re currently in, maybe I should develop a solution that “flip flops” back and forth from one scene to another and programmatically updates the play area of each scene accordingly?

Thanks for any advice anyone has :slight_smile: [import]uid: 105707 topic_id: 32900 reply_id: 332900[/import]

I believe you’d want to use storyboard.reloadScene()
http://developer.coronalabs.com/reference/index/storyboardreloadscene [import]uid: 52491 topic_id: 32900 reply_id: 130744[/import]

I believe you’d want to use storyboard.reloadScene()
http://developer.coronalabs.com/reference/index/storyboardreloadscene [import]uid: 52491 topic_id: 32900 reply_id: 130744[/import]

I’ve developed what I felt was an elegant solution flip flopping back and forth between two Scenes that load map and character data from separate files. This lets me take advantage of the scene transitions that the reloadScene apparently doesn’t let one use. I use storyboard.removeAll() on entering the new scenes to completely remove the previous scene so it’s ready to reload on the next transition.

Unfortunately I have some insane issue/issues that cause the simulator to periodically crash. Very frustrating since I don’t get any output from the output window to follow up on.

I’m monitoring my memory usage and have no memory leaks. The most frustrating thing is that I let the simulator run for hours yesterday transitioning scenes with no problems. It worked flawlessly. Now today it’s non functional. I haven’t touched my code! I don’t understand how this can be.

Not sure what my next step should be! [import]uid: 105707 topic_id: 32900 reply_id: 132253[/import]

I’ve developed what I felt was an elegant solution flip flopping back and forth between two Scenes that load map and character data from separate files. This lets me take advantage of the scene transitions that the reloadScene apparently doesn’t let one use. I use storyboard.removeAll() on entering the new scenes to completely remove the previous scene so it’s ready to reload on the next transition.

Unfortunately I have some insane issue/issues that cause the simulator to periodically crash. Very frustrating since I don’t get any output from the output window to follow up on.

I’m monitoring my memory usage and have no memory leaks. The most frustrating thing is that I let the simulator run for hours yesterday transitioning scenes with no problems. It worked flawlessly. Now today it’s non functional. I haven’t touched my code! I don’t understand how this can be.

Not sure what my next step should be! [import]uid: 105707 topic_id: 32900 reply_id: 132253[/import]