I have a button that should make things appear and and disappear in the script. However, the actuators that make the other object disappear are on the other object.
Normally, to actuate things we cal the code something along the lines:
cont = bge.logic.getCurrentController() button = cont.owner
However, I clearly need the controller for the other object (or at least I think I do.)
I try the following code:
label = scene.objects['Text.001'] # our aptly named explanation text labelcont = label.controllers for obj in labelcont: print("object") print(lablecont)
"Object" never prints, suggesting to me that there is nothing in the
KX_PythonSeq object that is returned by
I also tried to use
labelcont, and well, that returned index out of bounds.
How can I get the controller for a different object?