سؤال

How to show SKEmitterNode without parent node? I want my particles to stay at the static place, and emitter moves. But generated particles moving with parent node.

[someNode addChild:SKEmitterNode]
هل كانت مفيدة؟

المحلول

Without parent node? SKScene:SKNode, so SKEmitterNode will always have parent node.

Try setting targetNode property on emitter node to self (current SKScene).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top