How to Place a Scene in a Scene - Sprite Kit

I am coming from HTML and javascript development and HTML is tag iframe

. I was wondering if I could put a scene in SKNode the same way it works iframe

. Any help would be appreciated.

+3


source to share


1 answer


You can add a scene to a scene (or another node), but in this case, the scene added as a child will act like a normal scene SKNode

. In short, what you are trying does not make sense because the update:

child scene method is not firing.



In fact it should only have one scene at a time SKView

(a SKView

only has one property scene

). You may have multiple instances SKView

, however, but this is another topic, and if you go this way and run into some problems, feel free to post a new question.

+3


source







All Articles