Question about escape game..
satoshiwakata
Member, PRO Posts: 60
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
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
Thank you, I try later.
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.
Okay... what is your question?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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.
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
My Blog / App Store / Google Play
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
I can not make behavior....
I attach very simple file.
If you could, please correct it?
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
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 .
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.
My Blog / App Store / Google Play
See my video called how rules work. Seems like you need more understanding on gamesalad.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thank you your great help !!
For the time being, I could go ahead!!
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thank U !