Using 2.53 I have a single object in a scene. It’s a text object that I’ve appended from somewhere. So I’m in the 3d view looking at a bold arial ampersand.
I’ve given this object a Timer property, an Always sensor and a python script. Nothing else.
Here’s the python script:
own = GameLogic.getCurrentController().owner
myTime = own[“prop”]
own[“Text”] = myTime
I hit P and it works. I’ve got an onscreen timer. But how? I haven’t given it a property named “Text”. It needs line 3 to work and it needs “Text” within the square brackets. What gives?
Attachments
TimerTest.blend (362 KB)