PATCHMAN Posted October 31, 2011 Report Share Posted October 31, 2011 Im confused on how to get a sound to play at a specific time in the game. example: if sonic runs up next to a fan and without touching it, the fan sound starts. and when he walks away, the fan sound goes away. i guess im asking, is there a x,y, position code i can use? thanx again. you guys are helpig a lot! Link to comment Share on other sites More sharing options...
Ristar Posted October 31, 2011 Report Share Posted October 31, 2011 if you're wanting it to fade out you're going to (somehow, I'm not a programmer) work out the distance between sonic and the fan and have it reduce the volume until it reaches 0, at which point you have it stop playing the fan sound. you could also use the X coordinates to pan the fan sound effect left or right. Link to comment Share on other sites More sharing options...
PATCHMAN Posted October 31, 2011 Author Report Share Posted October 31, 2011 what would the code be though? im confused on the x, y positioning. would i program, somehting like if sonic x = xfan que sound? or....? Link to comment Share on other sites More sharing options...
PATCHMAN Posted November 1, 2011 Author Report Share Posted November 1, 2011 figured it out!!!!! nvm! thanx though Link to comment Share on other sites More sharing options...
Recommended Posts