Scene handover from one view to another
So I am making a game, and I am trying to make the main menu transition to the game without the window closing and opening a new one, which is what is happening now. I want it so when a user hits play, in the same window, the game loads. I tried using extern to reuse the view and scene, which did not work. Any help is greatly appreciated.
Try with other sample ?
Where the view and scene are pointers.
And you can easy add a button that clears scene and Insert new stuff.
hope it helps
@mrjj Thank you very much! I finally solved the issue by externing the view pointer and creating a new scene for the view to work on.
Externing ? What do you mean by that ?
I read it as
extern SomeClass *globalPointer;
could be very wrong though.
@mrjj I read it the same but hope it's not the case.