ARGH!
My game is almost completed, and now I've run into a very annoying error. I'm doing something wrong, but I can't really figure out what.
My goal is this: To have my female NPC distract another NPC. This is done is a style very similar to "Fate of Atlantis" where Sophia distracts Charles Sternhard.
So, as soon as GlobalInt 11 hits the 3, this starts to take place.
So, this is the code in the room's Repeatedly Executed Event:
if (GetGlobalInt(11)==3) {
DisplaySpeechBackground(MARGE,"Blah blah blah....");
DisplaySpeechBackground(MARGE,"...yadda yadda yadda...");
DisplaySpeechBackground(EDW,"Hahahaha! That was in my fourth year...");
DisplaySpeechBackground(EDW,"Blah blah blah....");
DisplaySpeechBackground(MARGE,"Blah blah blah! Haha!");
DisplaySpeechBackground(MARGE,"Blah... Blah... Blah blah blah...");
DisplaySpeechBackground(MARGE,"Yadda yadda yadda...");
DisplaySpeechBackground(MARGE,"Blah...");
}
Etc. It´s a total of 15 lines of BackgroundDialog.
So, when this happens, the game crashes and tells me I have too many overlays created. So I´m thinking the game is trying to spawn all these dialogs at the same time.
I´ve pondered putting in a Wait command, but that would mean that I loose control of my player character. So whatever code I add, should not interfere with the player character...
...Help?
My game is almost completed, and now I've run into a very annoying error. I'm doing something wrong, but I can't really figure out what.
My goal is this: To have my female NPC distract another NPC. This is done is a style very similar to "Fate of Atlantis" where Sophia distracts Charles Sternhard.
So, as soon as GlobalInt 11 hits the 3, this starts to take place.
So, this is the code in the room's Repeatedly Executed Event:
if (GetGlobalInt(11)==3) {
DisplaySpeechBackground(MARGE,"Blah blah blah....");
DisplaySpeechBackground(MARGE,"...yadda yadda yadda...");
DisplaySpeechBackground(EDW,"Hahahaha! That was in my fourth year...");
DisplaySpeechBackground(EDW,"Blah blah blah....");
DisplaySpeechBackground(MARGE,"Blah blah blah! Haha!");
DisplaySpeechBackground(MARGE,"Blah... Blah... Blah blah blah...");
DisplaySpeechBackground(MARGE,"Yadda yadda yadda...");
DisplaySpeechBackground(MARGE,"Blah...");
}
Etc. It´s a total of 15 lines of BackgroundDialog.
So, when this happens, the game crashes and tells me I have too many overlays created. So I´m thinking the game is trying to spawn all these dialogs at the same time.
I´ve pondered putting in a Wait command, but that would mean that I loose control of my player character. So whatever code I add, should not interfere with the player character...
...Help?