how to make delay event?I want one of the characters to follow the other with a delay

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bgegg

and Can I use lerp as other way?

I want to use this movement with the camera.
However, interpolatedcamera cannot properly follow the target when transform.y is rotated 180 degrees.

The monkey begins to move as soon as the cube moves.
I want to delay the movement of the monkey.
https://i.imgur.com/8AvX9Uv.mp4

this is code for monkey movement.target is cube.

extends Spatial

var t = 0
var target
var margin = Vector3(-3,0,0)

func _ready():
	target= get_tree().get_root().get_node("Spatial/Position3D")

func _process(delta):
	if target:
		var result = lerp(self.translation , target.translation + margin,t)
		self.translation = result
	
		t += delta * 0.003
	
		print(t)