How to Stop movement in swipe to move

ChucklingMonkeyChucklingMonkey Member Posts: 92
edited November -1 in Working with GS (Mac)
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

Comments

  • youngster9youngster9 Member Posts: 326
    You will probably need to make a rule that when you tap on your player change attribute self.motion.Linear Velocity.x and y to 0. That should get it to stop moving. I hope this works
Sign In or Register to comment.