I have player movement on touch but I wish when I tap over enemies player will stop moving. I tried the logic in attached screenshot, but it doesn't work, does anyone have solution for this? Many thanks.
I am not 100% sure what you mean and there is no screen shot attached, but I am thinking that you need to use a global variable, and when the touch ends set the global variable to say 1 and with the enemy movements, check this variable and if set to 1 don't do anything.
On touch set it the variable to 0, then the enemy should move.