Invert Mouse Direction [SOLVED]

Started by Atelier, Mon 20/06/2011 12:25:14

Previous topic - Next topic

Atelier

Would it be possible to invert the direction of your cursor in an AGS game?
For example, you move the mouse right but it goes left, you move the mouse up but it goes down, like the option to invert controls on a joystick.

Khris

Hide the mouse and use a GUI as cursor.

Position its hotspot at 319-mouse.x, 239-mouse.y for a 320x240 screen.

Clicking things is where it gets tricky, you can no longer use on_mouse_click or OnClick stuff as they are, you have to emulate all that.

In on_mouse_click you can use the alternate coordinates, but you have to be careful with eMouseLeft vs. eMouseLeftInv.
Emulating GUI behavior is even more complicated.

Wyz

I have never tested it but maybe you get the desired result when you flip the screen. I know AGS has functions for that, so try it out I'd say. :D
Life is like an adventure without the pixel hunts.

Atelier

Quote from: Wyz on Mon 20/06/2011 13:52:36
I have never tested it but maybe you get the desired result when you flip the screen. I know AGS has functions for that, so try it out I'd say. :D

Neat idea! What I want to do involves flipping everything upside down and right to left anyway, and this automatically inverts mouse cursor too. Thanks for the help Khris and Wyz!

SMF spam blocked by CleanTalk