Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SillySue on Wed 03/03/2004 19:38:17

Title: Making another person leave the room
Post by: SillySue on Wed 03/03/2004 19:38:17
In one part of my game, my character walks into a room and gets a mouthful from his boss.

Now I want the boss to leave the room. How do I do that?
Title: Re:Making another person leave the room
Post by: Darth Mandarb on Wed 03/03/2004 20:15:05
If the boss is a character you would/could:

MoveCharacterDirect;
// after the interaction of him yelling at you.


If he's just an object in the room you would/could:

SetObjectView;
AnimateObject;
MoveObject;

// after the interaction of him yelling at you.

I would assume you have him as a character, as that's the more practical way to do it.

~ d
Title: Re:Making another person leave the room
Post by: Ishmael on Wed 03/03/2004 20:54:53
And using the character[CHARID].room global variable (setting it to the room number you want the character to be in, -1 for not in any room) you can hide the character completely from the room.