All Questions


Luc-Frédéric Langis

Maybe a little error at 3:28 for

Hi, I think there is a small mistake at 3:23 when refactoring the following line

if owner.is_on_floor(): 
if _parent.velocity.length() < 1.0:   _state_machine.transition_to("Move/Idle") 


 if owner.is_on_floor() and _parent.velocity.length() < 1.0: _state_machine.transition_to("Move/Idle") 

It will the player switch constantly between the air/run state. I think it relate that the condition can be false even if the player is still on the floor.

  • Zulck replied

    Indeed, i got that bug and took 20min to find where it came from haha