Hi again,
I have a nice add on for animated buttons. What it does is, when you move your mouse over the button or click the button, it plays a sound.
Ok first, add the .wav sound that you want to be played when you move your mouse over the button to the 'sfx' folder. Then open up "sfx.ini" and change "NumSfx=8" to "numSfx=9".
Now open up Gameclient.vbp and go to the code of "frmConnect". Find:
Code:
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
And add this in that sub:
Code:
sndPlaySound (App.Path & "\sfx\button.wav"), 0
Change "button.wav" to the name of your soundfile.
Now, go to the "sound .bas" module and add this under
Option Explicit:
Code:
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Now you hear a sound when you move your mouse over the button! Yay!
EDIT: Oh yes, this is how to play a sound when you click on the button:
Ok first, add the .wav sound that you want to be played when you click on the button to the 'sfx' folder. Then open up "sfx.ini" and change "NumSfx=9" to "numSfx=10".
Now open up Gameclient.vbp and go to the code of "frmConnect". Find:
Code:
Private Sub Image2_Click()
And add this in that sub:
Code:
sndPlaySound (App.Path & "\sfx\button2.wav"), 0
Change "button2.wav" to the name of your soundfile.