user10745905
user10745905

Reputation:

How do I duplicate or clone a sprite?

I am trying to make my own little flappy bird game and I will like to know how to create the pipes.

I have tried several SKAction.moveTo(x: "Dosen't matter", duration: "Dosen't matter") and I want to know how to keep running this forever loop until the bird dies.

pipe.run(SKAction.moveTo(x: <#T##CGFloat#>, duration: <#T##TimeInterval#>))

I don't know how to make it go forever. I just goes once.

Upvotes: 0

Views: 63

Answers (1)

E.Coms
E.Coms

Reputation: 11539

use repeatForever

 pipe.run(SKAction.repeatForever(SKAction.moveTo(x: <#T##CGFloat#>, duration: <#T##TimeInterval#>)))

Upvotes: 1

Related Questions