I need to update a script that I found here a while back. It’s just a simple python script that displays a countdown timer. Unfortunatly Blender 2.49 doesn’t work with it. I don’t know any python so any help in updating it would be greatly appricated.
but it still says “Method getOwner() is deprecated please use the owner property instead”. I would like to get everything updated, but at least it works now.
Just one more quick question. I found a video script and when I ran that it had the same error plus a depreciated “getSensor()” so I just replaced it with “sensor” and that works great but I don’t know how to fix “depreciated Method isPositive()”. It says to use “the read-only positive property in stead”. If I could fix this then everything would be up to date with the newest version of blender and I wouldn’t have any more errors from my scripts.
This is the line that needs fixed.
if contr.sensors[0].isPositive():
GameLogic.video.source.play()
you can also convert those deprecated syntax with blender. Go to Text wndow>> click Text >> click Text Plugins >> then Convert BGE 2.49. Note: you need to have python installed