step two: shading
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
LocationType lt=GetLocationType(mouse.x, mouse.y); // changed 'int' to 'LocationType' since that's what actually what GetLocationType returns
// not that it makes a difference
if (lt==eLocationNothing) {
mouse.DisableMode(eModeLookat);
mouse.DisableMode(eModeInteract);
mouse.DisableMode(eModeTalkto);
if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) != null) {
mouse.EnableMode(eModeInteract);
mouse.EnableMode(eModeLookat); //<----THIS SEEMS NOT TO WORK
mouse.DisableMode(eModeWalkto);
}
else mouse.EnableMode(eModeWalkto);
}
else {
mouse.EnableMode(eModeLookat);
mouse.EnableMode(eModeInteract);
if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto);
else mouse.DisableMode(eModeTalkto);
}
Quote from: monkey_05_06 on Thu 24/01/2008 18:33:33Code: ags LocationType lt=GetLocationType(mouse.x, mouse.y); // changed 'int' to 'LocationType' since that's what actually what GetLocationType returns // not that it makes a difference if (lt==eLocationNothing) { mouse.DisableMode(eModeLookat); mouse.DisableMode(eModeInteract); mouse.DisableMode(eModeTalkto); if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) != null) { mouse.EnableMode(eModeInteract); mouse.DisableMode(eModeWalkto); } else mouse.EnableMode(eModeWalkto); } else { mouse.EnableMode(eModeLookat); mouse.EnableMode(eModeInteract); if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto); else mouse.DisableMode(eModeTalkto); }
Use InventoryItem.GetAtScreenXY. There's really no difference between using Hotspot.GetAtScreenXY and GetLocationType (other than return value of course), but GetLocationType can't be used for InventoryItems or GUIs while their respective GetAtScreenXY functions can.
BTW Crazy, that wouldn't actually help the problem as he still wants the cursor to cycle in certain cases. Further, there's no reason to insult anyone simply because they ask for help.
int lt=GetLocationType(mouse.x, mouse.y);
if (lt==eLocationNothing) {
mouse.DisableMode(eModeLookat);
mouse.DisableMode(eModeInteract);
mouse.DisableMode(eModeTalkto);
}
else {
mouse.EnableMode(eModeLookat);
mouse.EnableMode(eModeInteract);
if (lt==eLocationCharacter) mouse.EnableMode(eModeTalkto);
else mouse.DisableMode(eModeTalkto);
}
if (mouse.y > 200) {
mouse.EnableMode(eModeLookat);
mouse.EnableMode(eModeInteract);
}
Quote from: Crazy on Sat 19/01/2008 22:41:46
Remove the code that cycles the mouse buttons (if you can't find it in the global script you're a tool).
Quote from: monkey_05_06 on Sat 19/01/2008 21:35:53
You could put in the global script's repeatedly_execute function:Code: ags Hotspot* hat = Hotspot.GetAtScreenXY(mouse.x, mouse.y); if ((hat != null) && (hat != hotspot[0]) && (mouse.Mode != eModeLookat)) { mouse.SaveCursorUntilItLeaves(); mouse.Mode = eModeLookat; }
That way any time the mouse is over a hotspot other than hotspot 0 (the "no hotspot" hotspot), it will run the code to set the mouse mode.
Quote from: KhrisMUC on Sat 19/01/2008 21:40:43
Alternatively, one can use " if GetLocationType(mouse.x, mouse.y) == eLocationHotspot)".
if (Mouse.Mode != 4) {
mouse.SaveCursorUntilItLeaves();
mouse.Mode = eModeLookat;
}
Quote from: Uhfgood on Sat 19/01/2008 05:49:12
Curious, but does that plant happened to be named "Chuck" ? ;-)
Quote from: KhrisMUC on Fri 18/01/2008 16:01:59
Yep, really nice!
If you want anti-aliasing like in DOTT or Sam&Max, draw the room at twice the size, then scale it down. It looks like you've used only the line and fill tool, so doubling the size won't double the work
Quote from: MesaBlue on Fri 18/01/2008 21:27:30
Heh. Hey it's looking really good now that something is in the room. Must admit I like how it looks, a lot, nice job. Adding anything else? maybe a rug? The plant I see, what's the item on the table supposed to be?
Quote from: cat on Fri 18/01/2008 12:36:30
The only thing I would suggest is not using outlines on the black foreground.
Quote from: MesaBlue on Fri 18/01/2008 14:42:15
That's a great room! Question: is the exit sign lit? There's this brighter highlight around it, thought maybe that meant it was a lit sign.
Quote from: KhrisMUC on Fri 18/01/2008 16:01:59
Yep, really nice!
If you want anti-aliasing like in DOTT or Sam&Max, draw the room at twice the size, then scale it down. It looks like you've used only the line and fill tool, so doubling the size won't double the work
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.051 seconds with 14 queries.