I have a character creator with an HUD. I have several sub-menus, like size, color, stats and armor. Every sub-menu is a separate scene, and displayed via an “Overlay Scene” actuator, which is triggered by a message when a button is clicked. Now my problem is that I need some scenes to receive some information when inactive - in my case, when the character size (property) is increased, the size of the strength bar (property) in the “Stats” submenu is automatically increased as well. This doesn’t work, however, because the Stats scene is inactive at the time. Is there a way to fix this?
My overlay scene method is also quite a brick mess, is there a better way to do it?
You can have variables at the gamelogic level. (Not sure what the ‘official’ term for this is. I’m self taught.)
from bge import logic as g
g.character_size = 100
Those are always available. However, I’ve found they can cause some issues when ending or restarting scenes. On scene restart I have an init step that resets all of the variables I have modified this way.
… i don’t know what this code means, but i’ll try it out. in this case, i assume character_size is the property?
Use a control scene which is always active. You can use a or various controller objects to save data into their properties.
When a new scene is activated, just have an object copy the properties in the objects from the control scene!