我有一个球是反弹在屏幕上,球开始反弹时,函数touchesEnded叫: override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
for touch in touches{
let location = touch.location(in: self)
let ba
我需要运行SKAction序列的一个未知量(来自一个字典数组),这些SKAction序列是动态创建的,并且在循环中使用延迟增加,并随着循环的进行而增加。循环的打印输出应该出现在以下顺序 show line 5
hiding everything
show line 6
hiding everything
show line 2
hiding everything
以获得此功能我使用此
我有一个触发的SKAction,运行时使用Key:“running”。 我也有其他键操作。在我的情况下,我会发现它很方便,如果我可以检查,例如SKAction键“运行”正在运行或没有。 喜欢的东西: if (mySpriteNode.runsAction("running")) {
// do some magic code
}
现在我才发现,我可以看看是否有应用到一个节点,一般的