I am new to Swift and SpriteKit, and I have a small problem. I would like to spawn enemies once per second, while moving the player slightly once per frame. So I tried to create two separate SKActions. This is my code:
runAction(SKAction.repeatActionForever(
SKAction.sequence([
SKAction.runBlock(
addEnemy
),
SKAction.waitForDuration(1.0)
])
))
runAction(SKAction.repeatActionForever(
SKAction.runBlock(
movePlayer
)
))
But when I run the above, neither action(s) happen. How would I fix this?