Hello!
I need to make the input event only inside the area. For example, pressing "E" only works inside the area.
I tried using this code but...yeah... Can you help me?
extends Area
func _ready():
connect("body_entered", self, "enable_interset")
func enable_interset(body):
if body.name == "Player":
if Input.is_action_pressed("doing"):
print("done")
func _on_AreaIntr_body_entered(body):
if Input.is_action_pressed("doing"):
print("done!")
