Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: edmundito on Thu 27/05/2004 19:19:58

Title: Hidden Player Character + Active Inv
Post by: edmundito on Thu 27/05/2004 19:19:58
Is there a way to check whether the player character is hidden in a room? I have a blocking function call on on_mouse_click(..) relating to the player character, but since the character is hidden in a particular room the cursor switches to wait and it waits... forever.  ???

Edit-
Also, is there a way to make the whole active inv (when you cycle through actions, you get the last item you selected) not be a "Standard cursor mode"? Even if I make my own SetNextMouseCursor() or whatever, internally AGS still considers it to be a standard cursor mode.


I guess making my own user interface is a bit harder than I thought :P
Title: Re: Hidden Player Character
Post by: Ishmael on Thu 27/05/2004 19:27:06
Why does it wait? Because of a if (character[EGO].x == ) like conditional? You might find a way by using the character[EGO].walking variable, maybe...
Title: Re: Hidden Player Character
Post by: edmundito on Thu 27/05/2004 19:36:06
Because I'm uhave a FaceLocation(GetPlayerCharacter(), x y); and I have the option so that the "character turns to face direction".
Title: Re: Hidden Player Character + Active Inv
Post by: Ishmael on Thu 27/05/2004 19:41:10
I don't think that should block the game..
Title: Re: Hidden Player Character + Active Inv
Post by: Scorpiorus on Fri 28/05/2004 11:23:52
Quote from: netmonkey on Thu 27/05/2004 19:19:58
Is there a way to check whether the player character is hidden in a room?
Yeah, you can check a character[].on variable. If the hide player option is ticked it holds 0. It's unofficial but seems to work fine.

QuoteAlso, is there a way to make the whole active inv (when you cycle through actions, you get the last item you selected) not be a "Standard cursor mode"? Even if I make my own SetNextMouseCursor() or whatever, internally AGS still considers it to be a standard cursor mode.
If you mean you don't want it to display a graphic of the inventory item then there is an "Don't use inventory graphics as cursors" option in the general settings pane. I'm not sure if that's what you are after, though.
Title: Re: Hidden Player Character + Active Inv
Post by: edmundito on Fri 28/05/2004 19:09:30
Ah, ok... I found work arounds for both.... The one about active inventory just needed a SetActiveInv(-1); to clear that out :)