0
나는 스위프트를 사용하고 있으며 그 함수를 가지고있다.함수 호출 후 위치 변경
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