Okay. I just read the game loop. Uh. I still have some questions though. How do you code messages? Maybe an example of a script of how it should be done? I read it over and over again and didn’t quite get the answer. But still, thank you monster.
A) Use the GUI to configure the Message Actuator
B) Use Python to to configure the Message Actuator (as you already do)
send it by activating the actuator (can be done by any connected controller)
C) Use the python API to send messages (look at the Blender API see bge.logic)
two ways of receiving:
A) Receive filtered messages. Which means you set a subject this sensor is listening to. Only messages with the set subject will be evaluated by this sensor.
B) Receive all messages. This means you need to filter via Python … see below.
@bankbaa:
please use variable names that you can speak out ;).
Yes, it is a good idea to check the status of the sensor.
The subjects of the received messages are in the “subjects” attribute (not to be confused with the “subject” attribute). Keep in mind attribute “subjects” references a list.