Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: INDY54 on Wed 19/04/2006 13:44:30

Title: Character is always on the screen
Post by: INDY54 on Wed 19/04/2006 13:44:30
 :( I have this problem,  I have a character in the room1 then when this character look at one hotspot  I change to room2 where I show the page  of the document who is looking for , but although the character is set hide in the room2 appears overwritten in the room2. Why this happen ?
I have already mark Hide character  in room2. But isd always the same.
What can I do ? Where I am wrong. ?
Title: Re: Character is always on the screen
Post by: strazer on Wed 19/04/2006 13:59:48
(Please do not cross-post. I have deleted you original thread in the Technical Forum.)

Are you sure it's the player character that's visible in room 2? Maybe it's another, unused character that looks the same as the player character (i.e. uses the same view) and that starts in room 2.
To make sure, check in the Characters pane of the editor that none of your characters have "Starts in room: 2" set.

What pieces of code or interaction editor action do you actually use? How do you change rooms?
Title: Re: Character is always on the screen
Post by: INDY54 on Wed 19/04/2006 14:30:26
 :( This is my code:
  // script for Hotspot 1 (Hotspot 1): Interact hotspot
character[INDY].Say("It is an old document ");
character[INDY].Say("Speaks about Templars");
player.ChangeRoom (2);



Title: Re: Character is always on the screen
Post by: Gilbert on Wed 19/04/2006 15:41:49
Is the character INDY the player at that time?
Note that the room "hide player character" option only hides the player, not any other characters.
Title: Re: Character is always on the screen
Post by: INDY54 on Wed 19/04/2006 16:00:14
Absolutely
Title: Re: Character is always on the screen
Post by: Gilbert on Wed 19/04/2006 16:08:18
One possibly, that since you had set a speechview for the character, so it would still be used in that room. You may need to disable it manually in that room with:
player.SpeechView = -1;
Title: Re: Character is always on the screen
Post by: INDY54 on Wed 19/04/2006 16:19:39
Where i must put this code, in the interact box of the room2 ? I try this yet but noting is changed.
Title: Re: Character is always on the screen
Post by: INDY54 on Thu 20/04/2006 14:40:51
I have solved the problem. I create a new game starting from another were in the room 2 there was this character speaking, so I delete all 
and at the end I made a blank view for the character for solve definetively the problem. :) , but I wonder If I want delete a character what is the best thing to do.?
Title: Re: Character is always on the screen
Post by: Scorpiorus on Thu 20/04/2006 14:56:10
You can't delete characters at the moment.

If you don't use a certain character anywhere in your game just goto the Characters pane and set its starting room to -1. It will not appear in any room then.

You can also change its name to something like "not used" to mark it that you can always go and reuse it later. :)
Title: Re: Character is always on the screen
Post by: INDY54 on Thu 20/04/2006 16:15:34
 :) In fact I have do that.