Hi im new to swift and im creating a game based on touching target but each target is an image or an SKSpriteNode they have small size but sometime touch miss the target so i want to know how to make hit area bigger without making the target bigger. I use this code to detect touch for each target
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
/* Called when a touch begins */
for touch in touches {
let location = touch.locationInNode(self)
let node = self.nodeAtPoint(location)
if (node.name == "target1") {
//do some stuff
}
}
}
Any suggestion.