Last few weeks I´m doing a lot with properties, ths time a “timer” property type frustrates me:o
I have a simple script that should print “ya de ya de ya da da” when the timer property is equal or bigger than 1. The problem is, that when timer property reaches 1, nothing happens. No syntax error, but just nothing happens.
here is my script
import GameLogic
cont = GameLogic.getCurrentController()
own = cont.owner
time = own["time"]
if time>=1:
print ("ya de ya de ya da da")
but if you put
if time<=1:
instead of
if time>=1:
it works well.
Attachments
timer_problem.blend (128 KB)