Changes:
- Add new feature to have player move towards the mouse cursor when mouse button is held
- Some tweaks to how the touchscreen action button works to avoid inputs triggering multiple times
- Add a Control node under the button to swallow the emulated mouse events
- Have it trigger 'interact' rather than 'ui_accept'
- Rename a few internal bits of Player to make it easier to reference the player sprite
Testing:
- Checked on mobile and desktop
Future ideas:
- Add an option to let players choose between virtual joystick vs touch-to-move
- Add pathfinding navigation ("click to go here" rather than "click-and-hold to follow")
- Add some kind of visual indicator around/above interactable objects
- Allow clicking on actionables to interact with them
Changes:
- Add new feature to have player move towards the mouse cursor when mouse button is held
- Some tweaks to how the touchscreen action button works to avoid inputs triggering multiple times
- Add a Control node under the button to swallow the emulated mouse events
- Have it trigger 'interact' rather than 'ui_accept'
- Rename a few internal bits of Player to make it easier to reference the player sprite
Testing:
- Checked on mobile and desktop
Future ideas:
- Add an option to let players choose between virtual joystick vs touch-to-move
- Add pathfinding navigation ("click to go here" rather than "click-and-hold to follow")
- Add some kind of visual indicator around/above interactable objects
- Allow clicking on actionables to interact with them