Is there anyway to set the mouse pointer to an X/Y position until something happens in the game and only then?
Is there anyway to set the mouse pointer to an X/Y position until something happens in the game and only then?











Not sure, I think there is a cursor extension, maybe that has something. But what I would probably do is use an active with the graphic for the mouse pointer you want and set it to always be at X and Y of the mouse pointer, then restrict that by whatever events you want to control the pointer's behavior. You'll need to use the hide mouse pointer so it only shows your custom cursor and not the windows one.




kcmouse.mfx (I can't remember whether it's called the Mouse or the Cursor extension) has actions that can do this, though be aware that a couple of anti-virus suites detect this as a false positive because of these abilities. Like Shawn said, it might be worth knowing the context and if there's another way to do it.
OK,.I'll give that a try and thank you...











The extension is probably the easier method especially if you just want a standard looking windows mouse pointer (though it's not hard to copy or do a screen capture and cut it from the image in Photoshop/GIMP if you REALLY need it to be exact). But as David mentioned, that particular extension has caused numerous problems with false positives in anti virus programs. The average person downloading will never bother to download your stuff again if they think it has a virus, so it's something to consider.
Sometimes AV updates fix it, only later updates cause it to be flagged again. I avoid that extension if possible but it's up to you. I don't think the problem is widespread but one avoidable false positive is too many for my tastes.
See this is what I have,.I have a character the is set to the angle of the mouse,..lets say a Cannon,.I bring the mouse pointer towards the top of the screen the cannon lifts up and same for bringing the mouse pointer toward the bottom of the screen. What happens is the cannon will jump to the mouse position when the game first opens. So what I was thinking is to try to set the mouse pointer to the right side of the cannon on start of frame so there's no jump.

You should never interfere with the user's mouse in any way, ever. If I ever encountered a game that moved my mouse pointer for me,I would instantly close it. Not to mention I'd have to disable my anti-virus software just to download and run it without it being deleted.
Working as fast as I can on Fusion 3






LB: I disagree, RTS games use this while panning around in the level. Ie "Warhammer dawn of war". I think it's okay and that there isn't any bad ideas, just consequences from the public.
I use this in a small spaceship simulator (when you push the middle mousebutton).
"tompa.nu/clickteam/ship.exe"
TheSmanman: Try the "mouse object" from Marcello Baesta-forte if nothing else works. GL

No, LB is right on this one, and Shawn describes exactly what you *should* do - hide the actual windows cursor and use an active as a replacement.
That way you can reposition it or do whatever you like with it, but there won't be the problems with antivirus software deleting your game, and users won't get angry when they want to use the mouse for actions other than playing your game, and find they can't.
So don't ever mess with the windows cursor.






no, that's your opinion. not fact