Hello, I am trying to get my player rig complete.
I have an object with IPO rotation recorded. I am trying to control it with the objects properties.
I have this script that is supposed to ramp the mouse movements of the X and Y coordinates to the objects x and y properties.
For some reason the script does not seem to be changing the properties .
import Rasterizer co=GameLogic.getCurrentController() ob=co.getOwner() s1=co.getSensor("mouse") x=s1.getXPosition() y=s1.getYPosition() if x>32000: x=0 if y>32000: y=0 ob.x=x*100/Rasterizer.getWindowWidth() ob.y=y*100/Rasterizer.getWindowHeight()
It is to control the top of my player’s rotation. (sort of like a tank turret)
When I move the mose on the X axis i want it to change an integer property called X, when i move Y i want it to add or subtract from the Y property. That way I can control the IPO frames with the action actuator.
Thanks for any help!