Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: INDY54 on Fri 12/05/2006 07:55:47

Title: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 07:55:47
 ??? Today my problem is this: i create a simple game with 12 room, my game start at room 3, where i have put three characters 2 NPC and the player, and that works fine, but when i try to put a new  NPC characters in another room for instance room 6 (where I have previously checked in the character editor character start in room 6 at X, Y â€" I have already create and choose in the character editor the views  for this character like the others) when I test the game I can't see the character that I have put in this room. Why ?
Title: Re: The Character in Invisible Why?
Post by: Candle on Fri 12/05/2006 08:29:52
Did you use :
Example:

character[EGO].ChangeRoom(4, 100, 50);

will move the player character to room 4 and also place him at coordinates 100,50. This will also mean that the game moves into room 4.

Title: Re: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 09:16:25
I'm referring about a NPC character.
So i try to insert a new character in the room 6 like this:
character[playername].changeroom(6,120,100);
character[newNPC].Say("Hello i find you "); this work bau the character stay invisible in the room.
Title: Re: The Character in Invisible Why?
Post by: Gilbert on Fri 12/05/2006 09:33:40
Are you sure that his coordinates were set to within the screen area, and that he's not covered up behind a walkbehind area?
Title: Re: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 09:39:44
Do you mean if my new character is on the walkeable area ?
Yes I have check it.
Title: Re: The Character in Invisible Why?
Post by: Gilbert on Fri 12/05/2006 09:49:40
It's not necessary to have the character to be inside a walkable area to be visible, but the coordinates need to be within the screen area.
For example, if your game is set to 640 x 480 resolution, in a non-scrolling room, the effective coordinates are (0,0) thru (319, 239)
Title: Re: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 09:54:10
Ok. but what is the reason, I can see talk him but not see him.
Title: Re: The Character in Invisible Why?
Post by: Gilbert on Fri 12/05/2006 09:57:14
Did you set a valid talking view for him?
Title: Re: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 10:01:39
Yes
Title: Re: The Character in Invisible Why?
Post by: INDY54 on Fri 12/05/2006 11:54:05
Problem solved. I have exported and then imported the new character and now it works.
Title: Re: The Character in Invisible Why?
Post by: Gilbert on Sat 13/05/2006 04:21:24
Just a wild guess, the sprites were not imported at an appropiate colour depth matching your game. Possibly exporting and then re-importing them did some conversion for you.