Swift 按键操作无效

Swift Action with key not working

好吧,标题真的说明了一切...... 当我尝试编写以下代码时

ball.runAction(SKAction.sequence([actionMove, actionMoveDone], withKey: "Action"))

它说...

extra argument in call runAction

我该如何解决这个问题

我相信你放错了括号。尝试 ball.runAction(SKAction.sequence([actionMove, actionMoveDone]), withKey: "Action")

试试这个

ball.runAction(SKAction.sequence([actionMove, actionMoveDone]), withKey: "Action")

是不是“)”放错地方了