Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: YotamElal on Wed 02/03/2005 10:00:46

Title: text on/off, 1 button, 2 sprites (on & off)
Post by: YotamElal on Wed 02/03/2005 10:00:46
my text on/off script
    if (button == 9) {
   SetVoiceMode(2);
}
   if (button == 10) {
   SetVoiceMode(1);
}

I want one button for on & off.
I want the button to change to sprite on when on is pressed
and to change to sprite off when off pressed again...??
Title: Re: text on/off, 1 button, 2 sprites (on & off)
Post by: Gilbert on Wed 02/03/2005 10:16:22
Look up SetButtonPic() from the manual.
Title: SOLVED :o)
Post by: YotamElal on Wed 02/03/2005 11:22:27
THaNKU Gilbot..

SOLVED :o)