Complete Scene Reset

I'm getting really lost in this one. Any tips would be appreciated.

So I have a game level where the initial image of an enemy gets changed to another image.
Once it changes I hit a menu button that I created that takes me to a scene where I can choose a different level.
When I choose the same level I came from the level loads up with the second enemy image (instead of the original one as specified as a source image for the enemy's initial state). Somehow GS remembers the image change when it leaves the scene and then comes back to it. Is there a way in GS to make sure the scene is starting as it if were started the very first time?

Thanks,
Adam

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you change to a scene or reset a scene, all of the actors will return to their original positions, attributes, images, etc. So what you're describing is either a bug (unlikely) or something you've created with your code.

    Post a screenshot of the rules you're using to change your actor's image and also the rules you're using to change scenes.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • troynalltroynall Member Posts: 15
    when you say "once it changes" are you referring to the LEVEL changing or the IMAGE changing ?
  • adamrnjadamrnj Member Posts: 19
    I meant the image changes.
    This is what's happening:
    1. I load a scene
    2. The actor is moving
    3. Something in the game happens that triggers change of his image
    4. I click on a 'Level select' that takes me to the main level select scene
    5. I go back to the scene in #1 and that's where the actor has the second (changed image) rather than it's original image as it was placed on the scene during scene design.
  • BBEnkBBEnk Member Posts: 1,764
    Are you triggering a attribute to change the image?
  • adamrnjadamrnj Member Posts: 19
    image
  • adamrnjadamrnj Member Posts: 19
    I'm obviously having trouble uploading images, so here are the links:

    1. Scene/Level select scene that takes me to the level below (#2)
    https://drive.google.com/file/d/0B8soXHwUy6Z6dG9zWENzSVd5ODQ/edit?usp=sharing

    2. Changing actor's image during the game:
    https://drive.google.com/file/d/0B8soXHwUy6Z6cVl6SG1FVlY5ZHc/edit?usp=sharing

    3. Back button that takes me to a game select scene (#1) from the above scene (#2)
    https://drive.google.com/file/d/0B8soXHwUy6Z6bWpzWC03bjJiSHM/edit?usp=sharing

    Hope this will help with clarifying my issue.
  • BBEnkBBEnk Member Posts: 1,764
    Those links show a "?" mark to me..

    Just tell me how your triggering the image change..how does it know which image to use?
  • adamrnjadamrnj Member Posts: 19
    I use Change Image where I select the one needed and it does change the actors image.
  • BBEnkBBEnk Member Posts: 1,764
    edited February 2014
    so your using a separate button to select a image for another actor is that correct?
  • adamrnjadamrnj Member Posts: 19
    No there is no button to change an image, in the scene when certain condition is true I'm using 'Change Image' method.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    If the condition is a game level attribute you need to manually reset it. Scene reset only affects scene level stuff.
  • adamrnjadamrnj Member Posts: 19
    I'm not concerned by the condition (it's working fine in the game and causes the enemy image to change). When the scene reloads the enemy image is the changed one rather than its original one. The enemy image is not a game attribute, so why wouldn't it reset?
    Thanks
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    What triggers the image change?
  • BBEnkBBEnk Member Posts: 1,764
    edited February 2014
    No there is no button to change an image, in the scene when certain condition is true I'm using 'Change Image' method.
    If that condition is a attribute that changes to "True" it will stay "True" until you set it back to "False" a reset scene will not set attributes back to "False" only a game reset will do that. so in your actor thats changing its image have a change attribute at the top that sets that condition that may or may not be true back to "false".that way it will always start with default image.
  • GdoggGdogg Member Posts: 95
    edited July 2014

    is there a way just to reset the current scene without jumping back to the initial scene order or what ever scene is first in line, this is a bug in gamesalad, which realy needs attention, as far as im concerned

Sign In or Register to comment.