0 votes

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.

in Engine by (51 points)

You asked your question twice. You can hide it by clicking on the three dots in the bottom right of your question and selecting "Hide".

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.