??? 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 ?
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.
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.
Are you sure that his coordinates were set to within the screen area, and that he's not covered up behind a walkbehind area?
Do you mean if my new character is on the walkeable area ?
Yes I have check it.
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)
Ok. but what is the reason, I can see talk him but not see him.
Did you set a valid talking view for him?
Yes
Problem solved. I have exported and then imported the new character and now it works.
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.