Error spawning sprites in Swift/SpriteKit
问题 I'm having a problem in my code. When my obstacles come down forever, the "path" where the square is supposed to go through is sometime off the screen, and not positioned where I want it. I want the path to be between 1/4 of the screen width. I think the error is somewhere in the width and randomXPos constants. How can I fix this? (If you want a further explanation I can explain more.) func addObstacles2() { let obstacle2A = SKSpriteNode(imageNamed: "Obstacle") let obstacle2B = SKSpriteNode