Varying sound effects at runtime

Hey guys am current working on a game concept wherein there is an object that moves across the screen depending on the accelerometer and gravity. I want to add sound, as this object moves across the screen. The sound should be such that when the y value of the object is low the volume is high and when its y value is high the volume of the sound is low. I don’t know how to do this. And this is extremely crucial to my game. Please help me…please. Or give me some clue or reference please. :slight_smile: [import]uid: 44499 topic_id: 8288 reply_id: 308288[/import]

I would use setVolume (http://developer.anscamobile.com/reference/index/audiosetvolume) [import]uid: 42078 topic_id: 8288 reply_id: 29571[/import]