Area2D mouse click and print

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

Im trying get a print(“something”) after Area2D mouse click but i still cant get any output what may be the problem? Thank you

Input Enabled

:bust_in_silhouette: Reply From: Fenderbate

the error is in your if statement
instead of InputEvent.MOUSE_BUTTONuse InputEventMouseButton