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

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -