playMaker

Author Topic: Volume Slider  (Read 3338 times)

ArctheLad

  • Playmaker Newbie
  • *
  • Posts: 24
Volume Slider
« on: November 14, 2012, 05:49:01 AM »
Hello, I'm new to all of this Playmaker stuff and have been watching through the Tutorials and am now trying to test building things in playmaker outside of the tutorial stuff.

What I am trying to do is create a volume slider that places a GUI sliders on screen and allows the user to change the volume of sounds within the game menu.

Thanks!

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: Volume Slider
« Reply #1 on: November 14, 2012, 10:31:46 AM »
I remember a tutorial from the Hutong's site showing how to use a GUISlider to animate a cube rotation. Maybe you can check that and adjust to your needs.

http://www.hutonggames.com/tutorials_getting_started.php
Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8

ArctheLad

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Volume Slider
« Reply #2 on: November 14, 2012, 10:45:27 AM »
Yeah, that was where I intially started. I then moved on to the Heartbeat tutorial to try and duplicate that but to no avail.

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: Volume Slider
« Reply #3 on: November 14, 2012, 03:54:48 PM »
Can you show us whatever you've been doing? I'm pretty sure you know how to handle volume and such things... Do you? Maybe you've been doing some scripting?
Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Volume Slider
« Reply #4 on: November 15, 2012, 01:12:40 AM »
Hi,

 the way to debug this is to look at the variable you inject in the gui slider to see first if indeed it changes as you move the slider knob.

 then if it indeed does change and that the minimum and maximum values are correct, then see if it does reach the "set Game Volume" action. you do use this one right? not the "Set audio volume" correct?

bye,

 Jean

Mysterian

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Volume Slider
« Reply #5 on: April 01, 2014, 05:18:56 PM »
Any luck on solving this problem?  I was trying the same thing with the Heartbeat Tutorial (trying to get the volume to work without the Delay portion involved) and had no luck either! 

All I am trying to do is create a simple pair of volume sliders, one for adjusting the volume level of the music, and the other for adjusting the volume level of sound effects.