Hi there, I am having trouble with the Random in Director, I am trying to play at a random time, a sound. Here's my code.
on startMovie
global startTicks
set startTicks = the ticks
end startMovie
on idle
global startTicks
set ticksElapsed = the ticks - startTicks
if (ticksElapsed > 3*100) then
randomAnimation
end if
end idle
on randomAnimation
puppetsound 8,"Police Radio Chatter 0"&random
end
****
I have 8 sound call "Police Radio Chatter 01" to 08
Any help would be very appreciated, thank you.
on startMovie
global startTicks
set startTicks = the ticks
end startMovie
on idle
global startTicks
set ticksElapsed = the ticks - startTicks
if (ticksElapsed > 3*100) then
randomAnimation
end if
end idle
on randomAnimation
puppetsound 8,"Police Radio Chatter 0"&random
end
****
I have 8 sound call "Police Radio Chatter 01" to 08
Any help would be very appreciated, thank you.