John Nyquist
John Nyquist

Reputation: 293

Sprite from SKScene not running actions

In SpriteKit on iOS I thought it would be convenient to create sprites in a Scene Editor (in a scene not being presented) and then pull them in via code and add actions programmatically.

Unfortunately, I found that my actions run fine when I create a SKSpriteNode from scratch in code, but they do not run at all when I pull them in from another SKScene that is not the one presenting... Unless I have a breakpoint in the code, then the actions execute.

It says it has the added actions (hasActions() == true), it just doesn't run them.

Xcode 15, iOS target

Upvotes: 0

Views: 42

Answers (0)

Related Questions