The Character in Invisible Why?

Started by INDY54, Fri 12/05/2006 07:55:47

Previous topic - Next topic

INDY54

 ??? 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 ?

Candle

Did you use :
Code: ags
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.


INDY54

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.

Gilbert

Are you sure that his coordinates were set to within the screen area, and that he's not covered up behind a walkbehind area?

INDY54

Do you mean if my new character is on the walkeable area ?
Yes I have check it.

Gilbert

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)

INDY54

Ok. but what is the reason, I can see talk him but not see him.

Gilbert

Did you set a valid talking view for him?


INDY54

Problem solved. I have exported and then imported the new character and now it works.

Gilbert

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.

SMF spam blocked by CleanTalk