0
我使用了swift,并且我获得了该函数。调用函数后更改位置
FUNC spawnTwo() - > SKSpriteNode {
let two = SKSpriteNode(imageNamed: "landPic1")
two.anchorPoint = CGPoint(x: 0.5, y: 0.5)
two.name = "Obs"
two.zPosition = 5;
two.anchorPoint = CGPoint(x: 0.5 , y: 0.5);
two.position.x = 0
two.position.y = 0
self.scene?.addChild(two)
return two
}
现在我想,我每次调用该函数时,1280加入position.x。我怎么做?
你的天才哈哈哈非常感谢你:) – Chief