|
Sound
Jun 10, 2004 16:42:45 GMT -5
Post by cammoflagued Jesus on Jun 10, 2004 16:42:45 GMT -5
Does any1 no If and how you can add sound into a game (like a continual loop cause im making foosteps)Id apreciate it. thanx
|
|
|
Sound
Jun 11, 2004 3:27:42 GMT -5
Post by NovaGene on Jun 11, 2004 3:27:42 GMT -5
Try this:- dim footsteps footstep=LoadSound("C:\temp\footsteps.wav") while true while SyncTimer (10) if ScanKeyDown (VK_SPACE) then PlaySound(footsteps) endif wend wend First of all you must have the footsteps.wav in the folder c:\temp (in the above example). You shd use relative folder locations such as "\temp". Turn on the spkr and press space to hear the sound. Basic4GL installation contains an example AsteroidDemo2.gb with playsound feature. Go take a look! Currently basic4gl has support for simple sound feature. Tom has documented them here:- C:\Program Files\Basic4GL\Programmer's guide.htm He has planned for openAL support in future giving developers greater control over sound variations. - Lucas Tan - ps: you shd post help questions under Basic4GL Help section...
|
|
|
Sound
Jun 11, 2004 4:25:55 GMT -5
Post by Supermonkey on Jun 11, 2004 4:25:55 GMT -5
Yes you should, I'll move it over now ;D
|
|