Problem with sprite

i wanna make a clicker game in GDevelop so i decided to start with a sprite who’ll change picture after single touch and then go back to idle pic. my code is working but after one click this sprite is immediately changed to idle pic after touching. what can i do with it?

The solution for this is to combine everything into one event.

Looks like that you have the Sprite object with Button States behaviour, and two animations (“one” and “two”). The code:

Would this work for your game? :slight_smile:

1 Like

thank you so much :smiling_face_with_three_hearts::smiling_face_with_three_hearts: you have no idea how you help me !!! :pray::pray::pray::pray::pray: