hi ppl,
i just started to learn python so i still dont know how to convert script etc,can anyone change this script for me and make it work for blender 2.57 ?
import Rasterizer as R
cont = GameLogic.getCurrentController()
own = cont.getOwner()
mPosi = cont.getSensor(“MousePosi”)
Start mouse position at center of game screen
if own.init == 1:
R.setMousePosition(R.getWindowWidth()/2, R.getWindowHeight()/2)
own.init = 0
Move cursor to mouse position
cursorPosi = mPosi.getRaySource()
own.setPosition(cursorPosi)
thanks in advance,
Romy