Actore image resets to original when changing scenes

(I am BEGINNER with gamesalad) Hello I have small problem. I have one actor that is on my main scene (Sound on) that changes image when i press it (Sound off). My problem is now when i change scene to next and then i come back to main scene my actor is reset to original (Sound on) . So i want my actor to remember he was pressed (Sound off) and when i change scenes and come back to main scene he is still pressed (Sound off). If someone could explain me in detail what i need to do?

Comments

  • SLOCM3ZSLOCM3Z Member Posts: 797

    Make a boolean that says 'Sound'(or whatever). Then put in your rules "Timer: Every 0" Rule: "if attribute Sound is true" :do: "Change Image to SoundON" - :else: "Change Image to SoundOff". Then make another rule that says Rule: "Touch is pressed" "Attribute Sound is false" :do: "Change attribute Sound to true". Then another that says Rule: "Touch is pressed" "Attribute Sound is true" :do: "Change attribute Sound to false"

  • RedCubeGamesRedCubeGames Member Posts: 37

    Thank you very much, but I have few questions @jdlcrater ...

    1. do i make game.Sound or self.Sound?
    2. where do i need to put timer?
    3. do i have to nest all these rules or make them separate?
  • RedCubeGamesRedCubeGames Member Posts: 37

    @Thunder_Child could you maybe try to explain me how to make this work, and i really need detailed explanation.. I am searching for solution over 5 days and nothing. PLEASE HELP ME! I AM DESPERATE :disappointed:

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    @RedCubeGames I made you a little demo. I hope it´s what you´re looking for.

    Click the button to switch on/off. Change scene and go back, and the button stays how you left it.

    Made with Mac creator 0.13.7

    Mental Donkey Games
    Website - Facebook - Twitter

  • RedCubeGamesRedCubeGames Member Posts: 37

    @NipaDidIt People like you make this world a better place!!! I AM EXTREMELY GRATEFUL on this demo you made for me, it works flawless! you will be awarded for this help! I won't forget it :smiley: :smiley: :smiley: :smiley:

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276
    edited May 2015

    No problem. You´re welcome :smile:

    Mental Donkey Games
    Website - Facebook - Twitter

  • Thunder_ChildThunder_Child Member Posts: 2,343

    Well thanks for asking my help...but I was busy and did not see your tagging me in this thread. I'm glad @NipaDidIt was able to find a solution for you.

Sign In or Register to comment.