
Adding Controller Support to Defold Game
A downloadable asset pack
Download NowName your own price
This is the project I used on the "Adding Controller Support to Defold Game" video on https://www.youtube.com/@AsatteGames channel. You can download and extract the file and import to Defold. The Sprite Sheet I used can be found on https://cupnooble.itch.io/sprout-lands-asset-pack .
Follow on itch io and subscribe on YouTube for more Defold tutorials and content!
| Status | Released |
| Category | Assets |
| Rating | Rated 5.0 out of 5 stars (1 total ratings) |
| Author | Asatte Games |
Download
Download NowName your own price
Click download now to get access to the following files:
ControllerSupport.zip 55 kB

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