Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JudgeDeadd on Mon 06/06/2005 15:26:23

Title: Character doesn't appear
Post by: JudgeDeadd on Mon 06/06/2005 15:26:23
I've got a character with script name WEIRDO.
I want him to start in room 4 at coords 287,180.
But he just doesn't appear there!
If I put him in another room everything is fine.
Can you help me?
Or is there a command which in debug mode helps to determine where a character is?
Title: Re: Character doesn't appear
Post by: Mats Berglinn on Mon 06/06/2005 16:01:10
Have you checked out if the character is invinsible or that you put him at a walkbehind area?
Title: Re: Character doesn't appear
Post by: JudgeDeadd on Mon 06/06/2005 16:37:07
No, there aren't walkbehinds in that room.
Title: Re: Character doesn't appear
Post by: Gilbert on Tue 07/06/2005 08:08:49
Quote from: JudgeDeadd on Mon 06/06/2005 15:26:23
Or is there a command which in debug mode helps to determine where a character is?
Display("%d, %d", character[WEIRDO].x, character[WEIRDO].y);

If you want a "debug" feature for it, just tie that display to a key in on_key_press().

Is the character the player character? Check if the option "Hide player character" is checked for that room.
Check also if you had set some "invisible" view for the walkable area in the walkable area setting.
Title: Re: Character doesn't appear
Post by: JudgeDeadd on Tue 07/06/2005 14:24:47
Hmmm. I saw his room by using the following.

if (keycode==2)  Display("%d, %d", character[WEIRDO].room); // Ctrl-B, display weirdo

It tells me that he's in room 4,4477254. Is that normal?
Title: Re: Character doesn't appear
Post by: Kweepa on Tue 07/06/2005 14:51:13
Each %d you use corresponds to a number you want to display - so 4 is the WEIRDO's room number and 4477254 is some random junk from the stack.
To fix, remove the second %d.