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?
Viewing post in Adding Controller Support to Defold Game comments
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