Hey,
Whats the best way to ignore a certain touch location in sprite kit.
Say I have a game where you shoot by pressing the left half of the screen.
I also have a pause button on the left side of the screen.
So the issue I have is that obviously if I press the pause button it will also shoot at the same time.
So far I worked around this by placing the button at the top and ignoring touches for shooting in that whole top area. I have also tried playing around with "userInteractionEnabled" but couldn't get it to work how I want.
What is the best way to do this?. How can I say shooting is the left half of the screen except where the pause button is.
I appreciate any help. Thanks
SOLVED: does not equal is what is was looking for (!=). Again DUH
Admins please close this thread
Whats the best way to ignore a certain touch location in sprite kit.
Say I have a game where you shoot by pressing the left half of the screen.
I also have a pause button on the left side of the screen.
So the issue I have is that obviously if I press the pause button it will also shoot at the same time.
So far I worked around this by placing the button at the top and ignoring touches for shooting in that whole top area. I have also tried playing around with "userInteractionEnabled" but couldn't get it to work how I want.
What is the best way to do this?. How can I say shooting is the left half of the screen except where the pause button is.
I appreciate any help. Thanks
SOLVED: does not equal is what is was looking for (!=). Again DUH
Admins please close this thread
Last edited: