I’ve been checking the Yo Frankie files and found that it makes a use of 2 actuators to load scenes/blends :
- Scene-> Set scene (called “portal_scene” in frankie.blend)
- Game-> File (called “portal_blend” in frankie.blend)
I have tried to find in the documentation on how to do it with Python.
But I thought that, if it’s not used in the updated version of Yo Frankie, maybe that means that this method is not available?
So, can I load new scenes / .blends with Python, without actuators?
Is that possible to add a group of objects (same group, or all parented to the same object) in a .blend where it is not linked yet? I mean, without using a loop (add every obj in obj.parent list).
Do I need an empty in the next scene to add my main object after it’s teleported, or can I do it directly from the script?
The problem is that the actuator “Game->File” is activated (cont.activate) at the end of my script.
And once the new blend is loaded, my script is not active anymore because the object is not in the scene.
Is there any other solution than having an empty in the next scene adding the main object if it doesn’t exist?
I’d like to centralize that operation.