I wonder if there was a function like this, or maybe one about Walkable Areas. I tried (and tired) to search it in the manual, with no results.
I need it to change some interaction when the player is on an hotspot (or w.area) instead of another.
-Room Editor
Ã, -Areas
Ã, Ã, -Hotspots
Ã, Ã, Ã, -Interaction...
I don't know if you can do it through the Interaction Editor, you probably have to use scripting. Look these up:
GetHotspotAt (character[CHARID].x, character[CHARID].y);
GetWalkableAreaAt (character[CHARID].x, character[CHARID].y);
e.g. (in repeatedly_execute):
if (GetHotspotAt (player.x, player.y) == 1) {
//Do something
}
else if (GetHotspotAt (player.x, player.y) == 2) {
//Do something else
}
GetHotspotAt and GetWalkableAreaAt work with screen coordinates, but character coordinates are room coordinates, so this may not work in scrolling rooms.
So do this:
if (GetHotspotAt (player.x - GetViewPortX(), player.y - GetViewPortY()) == 1) {
//Do something
}
else if (GetHotspotAt (player.x - GetViewPortX(), player.y - GetViewPortY()) == 2) {
//Do something else
}
Sure! Thanks a lot!
Shouldn't you be using Regions?