#Input and Movement Vectors Help

1 messages · Page 1 of 1 (latest)

warped shard
#

update_animation_params(input_dir) is still referencing input_dir, despite the fact you got rid of that variable. You should probably keep it:

var input_dir = Input.get_vector("left", "right", "up", "down")
velocity = input_dir * move_speed * _delta
update_animation_params(input_dir)
#

however you could just pass in velocity ie: update_animation_params(velocity.normalized())

lofty sinew
#

Let me see if this works!

lofty sinew
#

Oh it's because I multiplied _delta

#

Otherwise it works like a charm.