SpriteKit: how to smoothly animate SKCameraNode while tracking node but only after node moves Y pixels?
问题 This question and others discuss how to track a node in SpriteKit using a SKCameraNode. However, our needs vary. Other solutions, such as updating the camera's position in update(_ currentTime: CFTimeInterval) of the SKScene, do not work because we only want to adjust the camera position after the node has moved Y pixels down the screen. In other words, if the node moves 10 pixels up, the camera should remain still. If the node moves left or right, the camera should remain still. We tried