Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
Mystery wrote:What would you like to include in the options?
Music on/off
Environmental sounds on/off
Or more?
Lyberodoggy wrote:To do so (and actually have slidebars), you are gonna need a lot of coding (drag n drop hotspot, divide the part of the bar that is selected by the whole bar size in pixels, convert to an integer ranging inside the volume control range and then set the value). If you decide to do so, I 'd love to help
Lyberodoggy wrote:Yeah, that's mainly what we do around here (and makes us feel like "advanced users" )
I really like coding and helping by the way
Well, I recall a topic about passing vars through a flash object. I wouldn't recommend that though.
If we modify the sample I made just a little bit, we can set the volume property of EZTalk or even the volume of a MediaPlayerObject instead of projecting the value in the text.
mercedes wrote:Or u can use buttons--Up and down buttons..
But it won't be like the hidden object games..that I've seen with the same controls..you speak of ..I'm assuming u too got the idea from them..?
This is an excellent feature Doggie..I hope it comes together..:D
Sub PlaySound(FileName, Repeat)
Action.LoadControl MediaPlayerObject(2)
MediaPlayerObject(2).FileName = FileName
If Repeat = True Then
MediaPlayerObject(2).PlayCount = 0
Else
MediaPlayerObject(2).PlayCount = 1
End If
MediaPlayerObject(2).Volume=-600
MediaPlayerObject(2).Play
End Sub
Lyberodoggy wrote:
- Code: Select all
Sub PlaySound(FileName, Repeat)
Action.LoadControl MediaPlayerObject(2)
MediaPlayerObject(2).FileName = FileName
If Repeat = True Then
MediaPlayerObject(2).PlayCount = 0
Else
MediaPlayerObject(2).PlayCount = 1
End If
MediaPlayerObject(2).Volume=-600
MediaPlayerObject(2).Play
End Sub
Use this code, then play with the MediaPlayerObject(2).Volume property
MediaPlayerObject(2).Volume=-600
For each mpo in mediaplayerobject
mpo.volume=thevariablethatstoresthevalue
next
Return to Adventure Maker Technical Support and Bug Reports
Users browsing this forum: No registered users and 0 guests