How to Stop movement in swipe to move

Hi,
Is there a way to make my player stop moving when you swipe because right now when you swipe right or left the player will continue to move that way which is a problem because you would walk off a cliff in my game. So is it possible to have the player stop moving if you tap the screen?
Thanks
Is there a way to make my player stop moving when you swipe because right now when you swipe right or left the player will continue to move that way which is a problem because you would walk off a cliff in my game. So is it possible to have the player stop moving if you tap the screen?
Thanks
Comments