Advertisement
metalx1000

Blender Mouse Cursor Image

Jan 2nd, 2012
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import GameLogic as BGL
  2. cont = BGL.getCurrentController()
  3. owner = cont.owner
  4. mouse = cont.sensors["movement"]
  5. owner.position = mouse.raySource
  6.  
  7. #You must have 2 sensors
  8. #Mouse over any, which needs to match the name in the code - This case "movement"
  9. #and an Always, both need pulse mode "true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement