I use this:
gameLogic.sendMessage(“subject”, “to object”,)
The object that recieves it has a python script attached to it with the line:
The problem is that he now types:
Anyone knows a easy solution to this?
There was a similar issue to do with keyboard sensors triggering twice recently. If the case is the same here then it’s normal behaviour, the sensor gets the message and sends one positive pulse triggering the attached controller, it then sends a negative pulse after the message is received which also triggers the controller - hence the double print. You can fix it by getting the script only to trigger on a positive pules:
# Checks to see if the message sensors is sending a positive pulse
Hope this helps!
Cool thanks a lot! ^^ it worked