All Questions

Community

T
Fabian Torres

Weird behavior.

When creating the variable, is_jump_interrupted the exact way you are doing it "var is_jump_interrumped: = Input.is_action_just_released("ui_up") and velocity.y < 0.0", it shows an error "Assigned value does not have a set type"... I got it working, but I had either remove the colon after the variable "var is_jump_interrumped = Input.is_action_just_released("ui_up") and velocity.y < 0.0", or assign the type for the variable "var is_jump_interrumped:bool = Input.is_action_just_released("ui_up") and velocity.y < 0.0". Just wondering why you are able to skip assigning the type
  • Nathan Lovato replied

    You're probably working from a different version of Godot, that is either older so type inference doesn't work as well, or that has a bug with type inference.