1.Why does a supposedely random number (number * rnd) always load my objects in the exact same place every time?
2.Whats the simplest way to put in sound?
Printable View
1.Why does a supposedely random number (number * rnd) always load my objects in the exact same place every time?
2.Whats the simplest way to put in sound?
I don't really know what you mean by loading the same thing into the same place but I guess putting a
randomize timer
over the line with the rnd statement would help.
For a real simple way to play sound you could use the mci control or look into the PlaySound API.
I just found something Rick Bull posted in another thread take a look
http://www.vbforums.com/showthread.p...hreadid=174934
it explains playing sound
How do I use/where are the mci control and the Playsound API?
for the mci control right click the toolbar (the bar with the little icons for buttons, picturboxes, etc..) and go to components, there you can add the MCI control (maybe under microsoft MCI control)
for the API you could just copy the code that Rick Bull posted and than use it like
PlaySound "C:\windows\media\ring.wav"