Discussions
Sign In
Forum rules
- please read before posting.
Invert mouse axis
2finger
February 2015
in
Technical Q&A
I need to invert the cursor mouse axis.
If I go up with the mouse, the cursor have to go down.
If I go left, the cursor have to go right...
Is a custom action needed or this can be done without write any script? Somebody have already try this?
Tx
Comments
ChrisIceBox
February 2015
Write this in line 192 of PlayerInput.cs:
mousePosition.y = Screen.height - mousePosition.y;
2finger
February 2015
Uh! Thank'you!
>-
But this can be changed during in-game (when the player enter a trigger it'll be enabled, when he exit it'll be disabled)?
ChrisIceBox
February 2015
Sure, with more custom scripting. It's not something I'd add to the main AC release, but it wouldn't take much for that to be extended.
Xidore
February 2015
I'd guess that if you make a global variable in a way like this:
var name: MouseInvert = -1
or MouseInvert= 1
Then you use that variable to multiply into that line 192
Would that work? I've not tried directly accessing AC variables in raw CS files.
2finger
February 2015
Yep, tx both for the suggestions, but I don't understand nothing in programming so I have to ask a friend of mine to make me the right modification. ^_^
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.7K
All Categories
66
Official news
1.5K
Engine development
10.7K
Technical Q&A
337
Games showcase
152
Extending the editor
230
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
mousePosition.y = Screen.height - mousePosition.y;