I can think of a way, but I'm very new, so, just an idea.
Give every exit a property or method that returns the name of the correct sprite to overlay the compass with. I would make four different script files, say, westexit.script, eastexit.script, etc, one for each direction. They would look something like this:
method GetSpriteName() {
return "westexit.sprite";
}
For each exit, you would attach one of these scripts.
Then, on the mouse entry event for the exit, call this method to figure out which sprite to use. For instance, attach the following script to each exit. This means you will have two scripts attached to each exit. NOTE: This is erroneous code. I don't really know how to reference the compass window, which I called winCompass.
var winComp2;
on "MouseEntry" {
//Create a new window, winComp2, and place it right over the compass one.
winComp2 = Game.CreateWindow("winComp2");
winComp2.X = winCompass.X;
winComp2.Y = winCompass.Y;
//Set the window's sprite.
winComp2.SetImage(GetSpriteName());
}
on "MouseLeave" {
Game.DeleteWindow(winComp2);
}
Does that help at all? Like I said, I'm new. I'm just figuring out how things work.
C
...
Oh, and anyone who wants to can point out that I'm wrong, because I probably am.