Forum rules - please read before posting.

Invert mouse axis

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

  • Write this in line 192 of PlayerInput.cs:

    mousePosition.y = Screen.height - mousePosition.y;

  • 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)?
  • 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.
  • 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.
  • 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!

Welcome to the official forum for Adventure Creator.