Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Music Volume Scrollbar

Author
Message
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 26th Apr 2010 03:30
hi,
Can someone give me some idea how to make a music volume scrollbar to increase/decrease the music of the game? I hv sourced the forum but got no result?

Thank you


Your Signature Here;
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 26th Apr 2010 19:06 Edited at: 26th Apr 2010 19:08
Hi,
After some try and error I made this:

It is working fine for me but the problem is that it decreases even when I click outside the sprite 2 on the clickable area. See the attach image and you will know.
Can someone tell me how to solve this?

Thanks


Your Signature Here;
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Apr 2010 21:46 Edited at: 26th Apr 2010 21:56
@B++:
I adjusted your code a bit. Hope this is what you're looking for? BTW, remember to not set the height of your scrollnob image higher than needed.
Hope this helped?



Cheers

Slayer rules!!! Yeaaah, man!
B++
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 28th Apr 2010 19:15
The Slayer:
Thanks a lot. Srry, I could not reply yesterday. It helped. Thanks.

Regards


Your Signature Here;
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 28th Apr 2010 20:35
Quote: "It helped. Thanks."

You're welcome.


Cheers

Slayer rules!!! Yeaaah, man!

Login to post a reply

Server time is: 2026-07-28 03:04:50
Your offset time is: 2026-07-28 03:04:50