X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/715f2ba5689e0474928af72a3f2d7493ef431963..0b4b7dc3e7a9507f7b7c87e9cf0f606e051927f2:/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: