← Return to asset pack
Log in with itch.io to leave a comment.
What if I wanted to add two contollers for two different players? How can I make the engine let one player move the first sprite, and the second player move the other sprite?
Then, you can add an additional check for controllers like: if action.gamepad == 0 or if action.gamepad == 1 etc.
Check out for more details: https://defold.com/manuals/input-gamepads/#multiple-gamepads
← Return to asset pack
Comments
Log in with itch.io to leave a comment.
What if I wanted to add two contollers for two different players? How can I make the engine let one player move the first sprite, and the second player move the other sprite?
Then, you can add an additional check for controllers like: if action.gamepad == 0 or if action.gamepad == 1 etc.
Check out for more details: https://defold.com/manuals/input-gamepads/#multiple-gamepads