Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Joseph DiPerla on Sun 23/11/2003 04:29:25

Title: SetGameOption Question
Post by: Joseph DiPerla on Sun 23/11/2003 04:29:25
Is there anyway of using this to unhide a player character in a room?

I created a character where I need him not to appear in the room, but then when he goes back to the room the next time, I need him to appear.

Is there in way of doing it with this function or any work around?

JD
Title: Re:SetGameOption Question
Post by: MrColossal on Sun 23/11/2003 04:45:28
i don't quite know what you mean

why don't you just set the the character's room number to -1 and then set it to the room's number when you need him to appear?

character[NAME].room = -1;
Title: Re:SetGameOption Question
Post by: Ben on Sun 23/11/2003 04:57:15
So, have you tried SetGameOption?
Title: Re:SetGameOption Question
Post by: Ishmael on Sun 23/11/2003 13:31:46
One way of hiding the player character in a non-scrolling room is to set his cordinates outside of the screen

character[EGO].x = 400;
character[EGO].y = 460;

in 320x240 res for ex.
Title: Re:SetGameOption Question
Post by: Joseph DiPerla on Sun 23/11/2003 16:49:27
Yes, I have tried set Game Option.


TK, thats it!!! I wish I would have thought of that.

See, I was putting the character in room -1, but what would happen was the briefly when the room loaded, the character would quickly appear and disappear.

That worked great TK, thanks again. Sorry if this question seemed a bit stupid btw.

JD

EDIT: Regarding the SetGameOption, I was meaning that is there a way to Set the option to unhide the player character in the room. I searched the list to find if it was there or not, but I didn't find it. But TK's workaround works for me.