Be a Supporter!

Change the cursors position?

  • 229 Views
  • 1 Reply
New Topic Respond to this Topic
dudejonne
dudejonne
  • Member since: Sep. 13, 2008
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Change the cursors position? 2009-03-17 09:51:51 Reply

Is it possible to change the position of the cursor?
I couldn't find any tutorials and if its not possible its kinda logical, but still.
Because I have a game witch is controlled by the mouse, but if you press 'p' (pause :p ) then you can change the position of the mouse, but I don't want that, so I though that the x and y of the mouse maybe could be reseted to their old position if you resume the game.

Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to Change the cursors position? 2009-03-17 10:23:08 Reply

You can't change the mouse co-ordinates, no. You can change the position of an attached/created cursor, and use Mouse.hide() to get rid of the original cursor, but any changes you make to the new cursor position will not be reflected in the _xmouse and _ymouse values.


- - Flash - Music - Images - -

BBS Signature