Hi,
I'm trying to wrap my head around the node-based state machine structure. I'm reverse engineering the "Finite state machine" demo and trying to define which direction to move the player in 2d with a local event for mobile touch input.
It seems that makeinputlocal is only available for use when extended to KinematicBody2d. Anywhere else in the tree it gives error "method not declared".
(I have a usable version of player movement with all code in one file, but is is getting difficult to maintain with more states. Which is why I'm trying to split it to different files.)
Questions:
- What are the limitations on applying "makeinputlocal"? The docs are unclear on this.
- What would be the most simple node based state machine structure? A tutorial on this?
- Where and how in state machine should I define local event touch controls?
I'll add more detailed information in the comments.