minor tweaks
This commit is contained in:
@@ -27,6 +27,9 @@ func _ready():
|
||||
#set FOV
|
||||
camera.fov = respawn_fov
|
||||
|
||||
level_control.player.ammo_counter.visible = false
|
||||
level_control.player.stamina_counter.visible = false
|
||||
|
||||
#start timer
|
||||
timer.start()
|
||||
|
||||
@@ -70,7 +73,6 @@ func _process(delta):
|
||||
look_ray.look_at(Vector3(target.global_position), Vector3.UP)
|
||||
camera.rotation = lerp(camera.rotation,look_ray.rotation,delta * CAMERA_LOOK_SPEED)
|
||||
camera.fov = lerp(camera.fov, 40.0, delta * 5)
|
||||
print(camera.fov)
|
||||
|
||||
elif respawn == true:
|
||||
position = lerp(position,respawn_position,delta * MOVE_SPEED * 1.5)
|
||||
|
||||
Reference in New Issue
Block a user