Question about escape game..

satoshiwakatasatoshiwakata Member, PRO Posts: 60
edited November 2015 in Working with GS (Mac)

Hi there!!
I want to a create stage.
This is that, it appears the key for door when audio volume was "0" for 10 seconds.
Is it possible??

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,925
    edited November 2015

    Sure, it's possible. But you set the audio volume so if it's 0, it's going to be 0 until you change it in the code. How are you letting the player change the audio volume?

    Here's an example of how this might work:

    If audio volume = 0
         Timer after 10 seconds [make sure "Run to completion is NOT checked"]
              Spawn Actor [key]

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

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    Thank you, I try later.

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    Hi there!
    please look at my screenshot.

    It is just simple scene.
    The player changes volume to 0 for 10 seconds,
    Door open (change image to open door) and, when touch the door, player can go to next stage.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,925

    Okay... what is your question?

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

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    Hi! there!

    My question is how to create behavior.
    I try to create in order to your comment,
    It does not work.
    Maybe my behavior is wrong.

    I am practicing to create game now. So if you could, please explain in this sentence.

    Here's an example of how this might work:

    If audio volume = 0
    Timer after 10 seconds [make sure "Run to completion is NOT checked"]
    Spawn Actor [key]

  • mhedgesmhedges Raised on VCS Member Posts: 634
    edited November 2015

    Satoshi,

    To me your behavior looks fine. However, some event has to occur to reduce the sound volume to 0 to then trigger your rule and timer. Just because there is a part of the game with no sound, it does not mean the volume is 0; the sound may be at 100%, but there is no sound to play.

    You might want to reconsider what triggers your timer?

    Regards,
    Marcos

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,925

    Use a Display Text behavior to show the value of both attributes to make sure that they are actually zero when you expect them to be.

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

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    I can not make behavior....
    I attach very simple file.
    If you could, please correct it?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,925

    The file you attached does not contain a rule related to sound volume. It just has a Display Text behavior that looks like you tried to make it have a rule condition:

    If that's not what you're seeing, it's possible that opening the file on a Mac caused some strange conversion problem but that hasn't been my experience before.

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

  • mhedgesmhedges Raised on VCS Member Posts: 634

    Satoshi,

    What @tatiang said is correct. This goes back to my original comment asking why are you using the sound volume as a condition to an event.

    Attached you will find an edited version of your file. Please compare it to the one you posted to see the differences. I may have left the timer at 5 instead of 10 so I wouldn't have to wait that long to observe the behaviors :D .

    All that said, even if I set the sound volume to 0 in the file, then set it back to max after the timer ends, your file does not have an event that decreases volume to 0. I hope your game does have that event.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,914

    See my video called how rules work. Seems like you need more understanding on gamesalad.

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    tatiang
    mhedges
    Lost_Oasis_Games

    Thank you your great help !!
    For the time being, I could go ahead!!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,914

    It's very important to get down the basics of understanding gamesalad. It's a good Idea to go to the Gamesalad academy and do a few tutorials I have one make a brick breaker game. The idea of the videos is to teach you the basics of game salad in a few hours while you follow along.

  • satoshiwakatasatoshiwakata Member, PRO Posts: 60

    Lost_Oasis_Games

    Thank U !

Sign In or Register to comment.