How to make a spawner from different scenes work at the same time?

Pencil Kraken GamesPencil Kraken Games Member Posts: 42
edited March 2013 in Working with GS (Mac)
Let's say I have a spawner in scene number 1. It will spawn a square after 15 seconds.
Now I start the game
I pressed a button to bring me to scene number 2 after only 5 seconds.I stayed at the
scene for 20 seconds.Now I press a button to return to scene 1.The square which is
supposed to spawn did not spawn.

So how do I get the spawner to work even when I am in another scene?
I hope you know what I mean.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You cannot really do that. All rules and behaviors stop once you leave the scene. And then reset to their original state when you return.

    The only thing I can think is you would have to track your times as game attributes and then maybe you could base all of your spawning off those.

    Another option would be an all in one scene game where you are only moving the camera position to show a new level. Though this method.is not very good from a performance standpoint.

    Sorry to be the bearer if bad news...
  • SocksSocks London, UK.Member Posts: 12,822
    So how do I get the spawner to work even when I am in another scene?
    It's pretty straightforward, just use an attribute to count the seconds in the first scene.

    Here's a very quick demo:

    http://www.mediafire.com/?h64fxwzruwj5l4a
Sign In or Register to comment.