Hello, I need help to create a game using OVERHOSPOT and a menu SAVE AND LOAD IMAGE.
Thank you very much!.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38874.0
To elaborate:
To use the "@OVERHOTSPOT@" token, create a GUI with a label on it and put that as the label's text. That's all.
The GUIs visibility should be set to "Normally, initially off", then turn it visible after your intro or start screen.
You can make it follow the mouse if you want, just set its position in repeatedly_execute() in Global.asc. You probably need to include a few checks so it doesn't get displayed halfway outside the screen.
Here's the function I'm using:
void UpdateCursor(String text) {
if (String.IsNullOrEmpty(text)) {
lblCursor.Text = "";
return;
}
int mx = mouse.x+2;
int my = mouse.y-13;
int w = GetTextWidth(text, eFontFont1);
gCursor.Width = w+2;
lblCursor.Width = w+2;
lblCursor.Text = text;
int x = mx, y = my;
if (mx > 160) x = mx - w - 5;
if (my < 0) y += 20;
gCursor.SetPosition(x, y);
gCursor.Visible = true;
}
Basically, to use that code, all you need to do is put
UpdateCursor(Game.GetLocationName(mouse.x, mouse.y));
in rep_ex.
Regarding a save system using screenshots; I've never done that but please be more specific about what doesn't work or what you need help with.