![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | EK1318 |
I put this code in for my Area2D node:
func _input_event(_viewport, event, _shape_idx):
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.pressed:
print(“clicked”)
But, it didn’t work. NOTHING WAS PRINTED OUT!