mouse over hotspot & sound

Started by , Fri 29/08/2003 00:50:42

Previous topic - Next topic

Paranoia plotting

i've got a vocal sound effect, that i want to play on mouse over hotspot but it plays it more than once, so it sounds like an echo and plays it again as the mouse comes off the hotspot, how can i stop this?

thanks

Ishmael

How did you put this to work? Did you script it? If you did, then seeing the script might help solving the problem ;)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

AJA @ school

Globalscript:

int onhotspot = 0;


repeatedly_execute:

if (GetLocationType(mouse.x,mouse.y)==WHATEVERITISFORHOTSPOTS && onhotspot == 0) {
 onhotspot = 1;
 PlaySound(X);
}
else if (GetLocationType(mouse.x,mouse.y)!=WHATEVERITISFORHOTSPOTS && onhotspot == 1) onhotspot = 0;


maybe this'd work?

Paranoia


SMF spam blocked by CleanTalk