Hi. I’m attempting to code a textbox GUI element in Python that changes text according to a messege it recieves. However, for some reason the message sensor method getBodies does not return anything! Heres my code:
#This function handles the events of various control functions.
#In other words, it calls callback functions
#the string tables
stringtable = [‘Hello. Welcome to Bouncie.
#the callback functions
#The function callback/functions for a TextBox
print “Text Change Event!”
sensor = controller.getSensors()
#Detect which function to call and call it
controller = GameLogic.getCurrentController()
owner = controller.getOwner()
if owner.state == 1: #for things like buttons.
owner.state = 0