0 votes

I am making a Fighting Game
I made a scene with a message saying, player1 press start, player2 press start, receive the events, but how can I assign them to a character without it ending up affecting both players 1 or 2 using a keyboard or gamepad?
I trĂ­ed using event.set_device(n), but it didn't work

Godot version 3.4
in Engine by (12 points)

You could try assigning different button to each player. For example, player 1's start button could be "X" on Device 0, and player 2's could be X on device 2. Based on which one you receive, you know which player it is.

Please log in or register to answer this question.

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.