Below is the code I use to create an SKSpriteNode. And I have a quick bit of code (not shown) that am using to get the point
where "touchesBegan" is initiated.
What I found is that the images I've created are touchable in the outer corners of the "round slots", that what I call them. Is there a way to make the touchable area represent the shape of the image even closer?
tried to include the screenshots as links, but was unable to
where "touchesBegan" is initiated.
What I found is that the images I've created are touchable in the outer corners of the "round slots", that what I call them. Is there a way to make the touchable area represent the shape of the image even closer?
tried to include the screenshots as links, but was unable to
Code Block http://warptv.com/images/slot.png http://warptv.com/images/screen.png
Code Block init(iNamed: String, sSize: CGFloat, xSpacing: CGFloat, ySpacing: CGFloat) { let texture = SKTexture(imageNamed: iNamed) super.init(texture: texture, color: .clear, size: texture.size()) self.anchorPoint = CGPoint(x: 0.0, y: 0.0) self.size = CGSize(width: sSize, height: sSize) self.zPosition = 1 self.position = CGPoint(x: xSpacing, y: ySpacing / 1.4) myGlobalVars.pegHolder.addChild(self) self.isHidden = false }