Can't change animation when finger is lifted

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

Hi I have 2 touchscreen buttons. When I lift my finger from them I want the animation to be idle. When the player touches the empty space animation must be shooting.

Now the only problem I can’ fix still is stopping shoot animation when finger is lifted. I use emulate touch screen if that matters.

I will be very grateful is someone helps me with this.
this is video when I run the game Youtube

code for right button Imgur: The magic of the Internet

I think the problem is line 23rd

ramazan | 2022-01-24 08:02

:bust_in_silhouette: Reply From: DaddyMonster

First, what a lovely looking game. Really cute art style.

You’ve got the animation on loop. Go to the shoot animation and there’s a blue repeat icon (top right), just deselect it and you should get a one shot. If you need the animation to play backwards, personally I’d use an AnimationTree.

I ll try this. The art isn’t mine I’m using it temporary. I hope it will become popular game. I ll add a lot of things to it. if u want i ll send you link later when It’s published on google store :wink:

cvetirodrigez | 2022-01-24 19:04

Haha, great to hear! Hopefully that should solve things, any issues let me know.

DaddyMonster | 2022-01-24 19:23