Hey!
Maybe I’m just not thinking straight, but I have a situation where I render some stuff in one scene, and I’d like to have it available in the next scene. Lemme explain:
It’s a turned based game where each turn you can perform 2 different actions. The way I have setup now, each of these actions is a scene.
So now I have my “FirstGameScene” where I render the background, the map and the players. Then I have “Action1Scene”, where player can move, so I basically need all the data from the previous scene. And then the next scene “Action2Scene” the player can attack, so yet again, I need all data from previous scene to perform this action. And then the turn starts again.
What is the best way to approach this problem?
Thank you all!
It does not have an easy way to move game object across scenes. Clone game object might be possible:
- Add a method to extract necessary information(position, angle, private data, …etc) of target game object in JSON format, for example.
- Add another method to create a new game object then apply game object data extracted from step1.
Thanks for helping out again.
I’m also considering stacking Scenes in top of eachother. Like having a scene just for the board, then one just for the players, then one just for the items etc.
I would probably need 6 scenes running at the same time. Is this considered a bad practice? What about performance?
Thanks
I guess that there is no performance issue in 1 or 6 scenes.
1 Like
Did you ever solve this? I’m looking to do something similar.
1 Like
Kind of, I solved it by not using multiple scenes =( in my case it was possible to do it. So I pretty much have one huge scene, split in different files for my sanity sake
If you’re interested, I found a solution that may work. I’m still testing but at first glance it does what I need.
1 Like