import GameLogic
print dir(GameLogic)
print "current scene is "
liveScene = GameLogic.getCurrentScene()
#print dir(liveScene)
print "now from that here is the camera:"
print dir(liveScene.active_camera)
#for o in liveScene.getObjectList():
# print dir(o)
me = GameLogic.getCurrentController()
print "controller"
print dir(me)
print "sensors:"
for obj in me.getSensors():
print dir(obj)
Thoughts and tutorials on programming
Subscribe to:
Post Comments (Atom)
2 comments:
using this "scene.getobjectlist" can also reveal to one the object's properties thus:
scene.getObjectlist()["OB" + name].propertyname
It is a kx_gameobject so you can also change the scale, and absolute position, etc.
Post a Comment