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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -