Hey,
I am new to programing and I would need help to figure out a logical issue. It regards values across different scenes.
I have an option-screen scene and a menu/play-scene. In the option screen a value can be toggled from true to false through a button, this value is global so it will have its effects in game once exited the option screen and got back to the play screen.
Everything works fine to this point, but I’d like to add an ulterior function in the play scene that will be called if and only if the original value has been toggled in the option screen. So the play scene should ‘check’ in the scene:show phase wether that global value has been changed when returning from the option screen compared to when option screen was entered.
How do I express in coding terms? Thanks I hope this is clear enough…