I am experimenting with SpriteKit. As a template, it opens with this:
override func touchesBegan(_ touches: Set<UITouch>, _ withEvent event: UIEvent) {
// Touch code here
}
It passes a touches
parameter that is a set of all the current touches, and their positions on the screen. When I click on the screen in the area that should be (0,0)
, the CGPoints are off by near 120? How can I recalibrate and position the scene to be at (0,0)
?