This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

So I made a splitscreen multiplayer game. One Player controlls it with keyboard and mouse and the second Player controlls it with a Gamepad (Xbox One Controller). But there is a Inventory system for both Players, which requires a mouse. Is there a way how I can make a second mouse, which is controlled by the gamepads joystick, so that the gamepad player can use his inventory?

in Engine by (378 points)
edited by

Both players share the inventory system? Or do the players have separate inventories?

1 Answer

0 votes
Best answer

Of couse you can.

Save the position in a Vector2, and modify it with the input-strength of the X- and Y-Axis of your chosen stick.
Register the left-click and the game-pad-button in the same action.
Then draw a small arrow to the position.

Now you can use the position-variable instead of get_*_mouse_position()

by (1,536 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.