sprite kit - How Do I Reconfigure Coordinate Plane in Swift -
i experimenting spritekit. template, opens
override fun touchesbegan(touches: set<nsobject>, withevent event: uievent)
it creates variable stores touch position on screen. when click on screen in area should (0,0) cgpoints off near 120? how can recalibrate , position scene @ (0,0)?
after experimenting bit have found fix issue. scene size default (1024, 768) , view size default (667, 375).
this code fixes problem: scene?.size = self.view!.frame.size
i concerned should have configure , feel missing configuration setting on creation of project. forgot set default xcode or missing something?
Comments
Post a Comment