I’ve created a text object.
I have created a few logic bricks that allow me to change the value of the text in response to the keyboard. For this I have created a Text Game Property for it in the logic editor.
This works. The text starts at “0.5” and changes values based on keyboard input.
I’d like to read the current value of the text in python at arbitrary times.
The following code reads the original default value, but does not get the current value that changed based on keyboard input:
Does anyone know how to get the current value of the text object? (or should I say “text game property”?)
I’ve tried also defining a game property “prop” and updating that value. When I show the properties in debug mode I can see the property is changing, but calls to:
always only returns the original value, not the current value of the property.