How to detect a click on a Sprite in Godot (EASY)

CODE: func _input(event): if event is InputEventMouseButton and and == BUTTON_LEFT: if get_rect().has_point(to_local()): print(“You clicked on Sprite!“)
Back to Top