X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/2e697142bf5e1b94429281572bdc1cbf5868d5ce..refs/heads/state-machine:/player/moves/walk.gd diff --git a/player/moves/walk.gd b/player/moves/walk.gd index 60f6f5b..dd707bb 100644 --- a/player/moves/walk.gd +++ b/player/moves/walk.gd @@ -39,8 +39,11 @@ func update_skin(delta: float): func get_new_velocity_from_input(input: InputPacket, delta: float, speed: float) -> Vector3: - var movement_direction := input.camera_movement_direction - movement_direction.y = 0 + var movement_direction := Vector3( + input.player_movement_direction.x, + 0, + input.player_movement_direction.y + ) # save off last movement direction if movement_direction.length() > 0.2: