How can I set the radius or the hit range of a node initialized with a texture? Of course I can do that with increasing the size of it, but actually I want to do this without resizing the picture itself. This node is moving around the screen with a small speed. This is my code:
func addMonster() { let monster = SKSpriteNode(imageNamed: "MosquitoDrawed") monster.name = predatorNodeName monster.zPosition = 1 // monster.physicsBody = SKPhysicsBody(circleOfRadius: 50.0) monster.position = CGPoint(x: random(-10.0,max: -30.0), y: random(10.0, max:130.0)) addChild(monster) let actualDuration = 7.0 let actionMoveTo = SKAction.moveTo(CGPoint(x: random(500, max:800),y: random(1, max:800) ), duration: NSTimeInterval(actualDuration)) monster.runAction(actionMoveTo,withKey: "move") }