YELP !! Reset scene issue..
kinzua
Member Posts: 554
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..????
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
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
--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.
I'll work on it..
I remember the thumb rule ..GIGO..