Discord
Login
Community
DARK THEME

volume control

Ok so say I wanted to use the "O" and "P" keys to change the volume by .1 is that possible? if so how?

music = audio.playMusic( "mymusic" ) 	

Starts playing the music "mymusic" and returns a controller object

control music playback

music.setVolume( volume )
if keyboard.O then 
   volume += 0.1
   music.setVolume( volume )
end

https://microstudio.dev/i/gilles/chiptoys1/

https://microstudio.dev/i/gilles/microfxr/

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community