Sunday, 16 May 2010

Tutorials for making a vertical volume slider doesn't seem to exist....

Weirdly enough.

I know I said that I have finished the programming but it is the game coding that has been finished.  This is an extra player option that I'd think would be very much considered for a game.

I've spent the last few hours trying to find a decent tutorial over the internet but I have had no success in it.  The best tutorial that I have found so far is this tutorial on kirupa. However when I try to edit the action script, it still doesn't work.

Surely by changing the line:

this.startDrag(true,line._width,0,0,0);

(startDrag(lockCenter,left,up,right,bottom)
would be easy as pie and set the dragger at 100 right?  But it still somehow manages to move right and off the line.  Hmm.  Guess I won't have any volume control for the game. 

This follow up tutorial here is most like what I've been trying to achieve apart from the setting the volume at 100%.  Both tutorials start at 0% and I can't seem to work out why it''s so hard to edit. 

Plan B would be to just do a master mute/un-mute button.  Toggle buttons would be a good idea but...let's see how long the research will take on the internet until I have a little idea on how to start this....

No comments:

Post a Comment