hide hud on pause and dead camera
This commit is contained in:
@@ -73,11 +73,7 @@ func _process(delta):
|
||||
camera.fov = lerp(camera.fov, 40.0, delta * 5)
|
||||
|
||||
elif respawn == true:
|
||||
position = lerp(position,respawn_position,delta * MOVE_SPEED)
|
||||
camera.global_transform.basis = lerp(camera.global_transform.basis,respawn_rotation,delta * CAMERA_LOOK_SPEED * 1.5)
|
||||
camera.fov = lerp(camera.fov, respawn_fov, delta * 10)
|
||||
if global_position.distance_to(respawn_position) <= .5:
|
||||
animation_player.play("whiteout")
|
||||
animation_player.play("whiteout")
|
||||
|
||||
|
||||
func _on_timer_timeout():
|
||||
|
||||
Reference in New Issue
Block a user