import SpriteKit
var ground: SKSpriteNode?
class GameScene: SKScene {
override func didMove(to view: SKView) {
ground = self.childNode(withName: "ground") as? SKSpriteNode
let move = SKAction.moveBy(x: 1000, y: 1000, duration: 10)
ground?.run(move)
}
}
I have 3 sksprite nodes with the name "ground". But only one of them runs the action move. How do I make them all run the action move? Thank you for any help.