- Home /
Unity2D : How can i change animation by dragging finger left or right on screen?
So, in my game scene there is a character who is just looking at left side Now, what i want to do is, whenever the user drags left he should face left side and whenever the user drag on right side of screen he should face right side, Notice that i am saying "drag" not "Swipe", dragging the finger without taking it off the screen is what i mean Right now, i have animated the character's legs and his legs just keeps moving and i want him to do same thing but just face in the direction of finger drag. How can i do that? i would really appreciate if anyone can help me please!
Also, i would really love it if anyone can help me with the drag script too, right now i can only drag it if i place my finger on the character and then start dragging, i want to drag by placing finger anywhere on screen, if thats possible. Thanks :D
@basboogaard89 @Bunny83 @Eric5h5 @aldonaletto @fafase @clunk47 @Statement anyone help :D
Your answer
Follow this Question
Related Questions
creating animation made my each prefab spawn at same position 1 Answer
creating animation made my each prefab spawn at same position 1 Answer
How to prevent multiple animations playing at the same time on the same object. 1 Answer
spawning a prefab that have animation 1 Answer
Run animation when countdown reaches 0 2 Answers