Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.

crashoverride77

macrumors 65816
Original poster
Jan 27, 2014
1,234
213
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
 
Last edited:
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.