Okay, doing a lot of my own GUI's for my third game. It's been quite the learning experience, but now I have a problem. When a saved game is restored, all of the SpeechAnimationDelay values drop to ZERO.
I did a work around, and added this code to the GLOBALSCRIPT.ASC
Code: AGS
Have I come up with the best option? Is there a fix? Is there a more elegant solution?
- Cogliostro
I did a work around, and added this code to the GLOBALSCRIPT.ASC
function on_event(EventType event, int data){
if(event==eEventEnterRoomBeforeFadein) {
// RESTORED games upset the speech animation # -- Trying to fix
int x=0;
while (x<6) {
character[x].SpeechAnimationDelay=4;
x++;
}
}
}
Have I come up with the best option? Is there a fix? Is there a more elegant solution?
- Cogliostro