All Questions

Community

C
Antonio Cambule
posted to: Air movement

Error on 10:36 func unhandled_input in Move.gd?

Hi, for me this line didn't work: _state_machine.transition_to("Move/Air", { impulse: jump_impulse }) it had to be: _state_machine.transition_to("Move/Air", { "impulse": jump_impulse }) Missing " " for the dictionary key, if it's a string it has to be double quoted, at least in 3.1.2 for me.
  • Nathan Lovato replied

    Yes, dictionary keys have to be quoted, unless you use the = sign:

    { impulse = jump_impulse }