Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bibin | |
Old Version | Published before Godot 3 was released. |
Reply From: | vinod |
You need to detect the click on the object and play the animation.
For that you need to add an Area2d.
Add a collider and your sprite as children of the area2d.
Then you can listen to the mouse click signal in the area2d and animate the sprite accordingly.