So, for example:
Character properties can be set by choosing a character and clicking oin the properties buttopn just under "interaction"
Object properties can be edited by going to a room's Object section and clicking on the Properties button next to "New Object"
And hotspot properties by a room's Areas/Hotspot and clicking properties, next to "interaction".
The first time you do one, you will be told that no properties exists and you have to edit the schema. The right-click on the schema window, add a property and call the property "labelx" for example, set the type to number, etc. Create another one called "labely".
Then, in the repeatedly execute:
int loctype;
int itemno;
loctype = GetLocationType(mouse.x, mouse.y);
if (loctype == 1) {
itemno = GetHotSpotAt(mouse.x, mouse.y);
CreateTextOverlay(GetHotspotProperty(itemno, "labelx"), GetHotspotProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
} else if (loctype == 2) {
itemno = GetCharacterAt(mouse.x, mouse.y);
CreateTextOverlay(GetCharacterProperty(itemno, "labelx"), GetCharacterProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
} else if (loctype == 3) {
itemno = GetObjectAt(mouse.x, mouse.y);
CreateTextOverlay(GetObjectProperty(itemno, "labelx"), GetObjectProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
}
Character properties can be set by choosing a character and clicking oin the properties buttopn just under "interaction"
Object properties can be edited by going to a room's Object section and clicking on the Properties button next to "New Object"
And hotspot properties by a room's Areas/Hotspot and clicking properties, next to "interaction".
The first time you do one, you will be told that no properties exists and you have to edit the schema. The right-click on the schema window, add a property and call the property "labelx" for example, set the type to number, etc. Create another one called "labely".
Then, in the repeatedly execute:
int loctype;
int itemno;
loctype = GetLocationType(mouse.x, mouse.y);
if (loctype == 1) {
itemno = GetHotSpotAt(mouse.x, mouse.y);
CreateTextOverlay(GetHotspotProperty(itemno, "labelx"), GetHotspotProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
} else if (loctype == 2) {
itemno = GetCharacterAt(mouse.x, mouse.y);
CreateTextOverlay(GetCharacterProperty(itemno, "labelx"), GetCharacterProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
} else if (loctype == 3) {
itemno = GetObjectAt(mouse.x, mouse.y);
CreateTextOverlay(GetObjectProperty(itemno, "labelx"), GetObjectProperty(itemno, "labely"), <labelwidth>, <labelfont>, <labelcolor>, GetLocationName(mouse.x, mouse.y));
}