Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Lienucs |
Hello,
I’ve created a chest with animated sprite and area2D/collisionShape2D.
I’d like to know the best way to detect and handle when the player clicks a specific button while he is in the area2d, to play the animation of opening the chest.
I guess i have to use body signals in my area2D, and i also saw some references to _input_event or _on_Area2D_input_event methods. But i don’t understand what should be the right way to do it.
I’m using godot3.