YELP !! Reset scene issue..

kinzuakinzua Member Posts: 554
edited December 2011 in Working with GS (Mac)
Ok.. my game has a few actors (like 10) in the scene and about a few fifty of attributes in my scene..
the attributes change and actors get destroyed depending on these attributes..
you win ..when the last actor has left..its more of a puzzle..

now my questions.. On Reset Scene attribute..
1. is it supposed to get back the way scene started?

2. if not, is it supposed to revive destroyed actors and reset game & actor attributes?

3. should i b working on a manual reset...what i mean to say is..doing a change attribute to a few hundred attributes of the game plus..Not destroy the actors in the game and get them back into the scene..where they originally were..????

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited December 2011
    Yep, you need instant reset. You want it to be the same way it started out.
    One way of doing this is to locate the each actors x and y positions.

    Then, when you destroy them, move the actor off screen, play a sound or two, and change an attribute (say game.objectcount) to game.objectcount TO game.objectcount-1. Then when objectcount = whatever, you win. Example. When attribute game.objectcount = 2, spawn actor You Win.

    Now, when you tap reset, change an attribute that triggers all objects to go to their position that you recorded.
    If you don't understand it that well, Darren just came out with a video on how to remember where you actor was when you left the scene, you could probably get it from there.

    Here is the link:
    http://forums.gamesalad.com/discussion/36040/video-tutorial-save-actors-xy-position-from-scene-to-scene#Item_3
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    edited December 2011
    1. is it supposed to get back the way scene started?
    --Yes and No. It will reset Actor and scene attributes to the values they where set to at the scenes original load. It will also replace every single actor to it original scene position

    2. if not, is it supposed to revive destroyed actors and reset game & actor attributes?
    --It will replace all actors to the beginning positions and reset their attributes. It will not however reset any game attributes

    3. should i b working on a manual reset...what i mean to say is..doing a change attribute to a few hundred attributes of the game plus..Not destroy the actors in the game and get them back into the scene..where they originally were..????
    --You will have to do this in conjunction with your reset scene or instant reset that Braydon mentions. I personally don't worry about an instant reset anymore as the games seem to run fast enough to reset without a load icon on most devices nowadays. You will have to set change attributes for all your game attributes you want reset. in conjunction with your reset scene behavior.
  • kinzuakinzua Member Posts: 554
    Thanx guyz.. it clears the water..

    I'll work on it..
  • kinzuakinzua Member Posts: 554
    Hey guyz.. it worked..Like a sword..

    I remember the thumb rule ..GIGO..
Sign In or Register to comment.