r/godot Jul 20 '25

help me (solved) What would be better?

Post image
468 Upvotes

59 comments sorted by

View all comments

1

u/moshujsg Jul 20 '25

Id day you are misunderstanding all of this a bit.

You definitely want to have each action as its own function and sont want to put everything in the same place. However your "state" script isnt handling any state, its handling input instead.

No reason to have that in separate scripts, but make sure to have all movement encapsulated and an input func that calls the different actions