-2
override func update(currentTime: CFTimeInterval) {
if currentTime - self.lastEnemyAdded > 1 { //my lastEnemyAdded is "var lastEnemyAdded : NSTimeInterval = 0.0"
self.lastEnemyAdded = currentTime + 0.5 //how can i make this -0.1 as the game go longer or if the player reach a certain score
self.addEnemy() //can someone help me please
}
}
非常感謝你 –
高興地幫助你.. :) –