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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

python - No response in ssh.exec_command in paramiko -