Waiting time in "Areas2D"

Godot Version

Godot 4.2


Is it possible to configure an “Area2D” in such a way that when you position the mouse pointer over it it waits at least one second to be activated?
Context: I have my “Camera2D” and it moves through areas located on the contours of the screen. But as soon as the mouse pointer reaches the edge it is activated. I would like there to be a delay.

Excuse my English. Google translate.

Thank you!

You can start a timer when you hit the Area2D like:

func on_area2d_entered(area):

then you excute your action in the timeout event from your timer.

Maybe this helps :slight_smile: