swift - Keeping a center point when scene is moving -
i new swift , making game skcamera moving on scene wanna keep center of scene updated when skcamera moves along. wondering can use.
thank you
what mean "keep center of scene updated when skcamera moves along" if using camera, camera the center of screen, , entire scene updating. going take stab in dark here , not setting scene.camera = skcameranode
. other this, need clarify asking for.
use set camera ball after passes point:
camera.y = ball.position.y > scene.height/2 ? ball.position.y : scene.height / 2
Comments
Post a Comment