ios7 - SpriteKit scene/node on top a paused scene -


i'm trying add scene/node on top of paused scene transparent background active scene view still visible.

i pause scene scene.view.paused = yes; means paused update method.

with cocos2d 1 push new scene on top of existing 1 unfortunately spritekit not have capability.

is there way pause scene , add active scene/node on top of ?

a solution i've tried :

creating additional view controller pause-scene content , present via active view controller when needed background black transparency not achieved , other problems occur original scene (i'll elaborate on these if needed).

it's there. not have present new scene or view.

in nutshell:

  • pause node game content on want pause. if processing in scene class you'll have refactor it, i'm afraid. key having sknode acts "game layer" can pause particular node. if receive update: , other regular method calls game layer, should check self.paused state before doing processing.
  • when have that, pause game layer node pause nodes , actions in it.
  • now add "layer" node whatever ui need scene. game on or pause layer, , happy receive input , run actions while game layer paused.

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -