Touches in Spritekit Get Intercepted in Swift

Long story short, touches to spritenodes are getting intercepted. If a touched node with a lower z position values comes in contact with a object with a higher z position property, the node with the higher z position value takes over and intercepts the touch of the node that was being dragged. This is not the desired result. How can this be fixed?

Hi @rbsmith5, without a sample code of your touch events my first guess would be to restrict touch events to only accept the currentNode? :man_shrugging:t2:

Set it in touchesBegan, restrict it in touchesMoved (guard maybe) and release it in touchesEnded

Hope it helps
Good Luck :]

This topic was automatically closed after 166 days. New replies are no longer allowed.