#StateMachine parameters problem

1 messages · Page 1 of 1 (latest)

normal raft
#

when i try to use the same "hit" parameter i used to enter the same state machine, it creates another one.
i don't need that.
i want to go into hits state machine when you attack, and while the "hit" == true, if you HIT again it goes to another hit animation, kinda like a combo!
if you hit once and don't hit again then it exits and goes right back to move, but for that to work i would need to use "hit" bool to guide it. Any help is appreciated

shrewd plover
#

you want to disable the switch from hits to move if you are still attacking

normal raft
#

yes i want to disable it, is there a way to do that

eternal island
#

iirc, you can click the green arrow to show its conditions in the inspector, iirc you can write actual boolean comparisons in the text field (but without syntax highlighting).

You can modify its value from code too which is more reliable.
https://docs.godotengine.org/en/stable/tutorials/animation/animation_tree.html