Author Topic: GMK How?  (Read 407 times)

How do you keep the cursor in one area without 3d?
I've tried set variable mouse_x set to 320 and set variable mouse_y set to 240.
Can someone help me?
 :panda:
 :cookieMonster:


If it's not 3D, why don't you just set the mouse sprite to nothing?
EDIT: Instead, how about you tell us WHY you need this information.
« Last Edit: January 07, 2012, 10:57:17 AM by Club559 »

I don't want it to actually move but stay still.. while in 2d mode. And I have 2 computer screen so in full screen no cursor, the cursor can just fly out of the screen and still be there.

I don't want it to actually move but stay still.. while in 2d mode. And I have 2 computer screen so in full screen no cursor, the cursor can just fly out of the screen and still be there.

The 2 screen problem is something else that you'll have to deal with, seeing as I doubt there's any way to keep the mouse in one place without 3D or maybe a LIB.

I don't think you can use mouse.x or mouse.y to keep the mouse still in GMK.
It's a variable that is "read-only" or whatever you'd call it.

Point is, it's used to see where the mouse is, not obstruct it's movement.