Python scripts visualization

Hi guys,

It´s possible to access the python code of the each logic brick when connections is made (sensor+controller+actuator)?

short answer: NO

long answer: logic bricks are not made of python, but C++ so its not currently possible to convert them to python in order to see the code that way.

I’m not entirely sure what you are asking, but if you just want to manipulate sensors and actuators attached to a python script, then it is very easy.

cont = GameLogic.getCurrentController()

sen1 = cont.getSensor("sensorName")

act1 = cont.getActuator("actuatorName")

#You can then do stuff with them like so:
if sen1.isPositive():
     GameLogic.addActiveActuator(act1, 1)

You can learn what you can do with which sensors and actuators here:

Just look under the Python Functions heading.