View Single Post
  #2  
Old 03-01-2009, 06:28 PM
DBurks2818 DBurks2818 is offline
Member
 
Join Date: Feb 2009
Posts: 8
Here's something my team made for our game:

Quote:
song = viz.add('[insert song].mp3')
song.play()
song.volume(1.0)

viz.clearcolor(0.5,0.5,1)

def myslider(obj, pos):
song.volume(0.8*pos)

viz.callback(viz.SLIDER_EVENT,myslider)
I couldn't quite get it at first either, but it turned out to be pretty simple.
Reply With Quote