Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: urgrue on Wed 23/06/2004 22:06:33

Title: EGO wont appear in a new scene (SOLVED)
Post by: urgrue on Wed 23/06/2004 22:06:33
Having a scripting problem.
Two characters (ego and shodan) are in dialogue, where at one point i call run-script.
The run-script part contains:
Ã,  ReleaseCharacterView(EGO);
Ã,  SetCharacterSpeechView(EGO,4);
Ã,  SetCharacterView(SHODAN,28);
Ã,  character[SHODAN].room=14;
Ã,  character[SHODAN].x=200;
Ã,  character[SHODAN].y=150;
Ã,  ReleaseCharacterView(SHODAN);
Ã,  NewRoomEx(14,230,175);

Now, I have in room14, and in the beginning of the room script I have:
function room_a() {
Ã,  // script for room: Player enters screen (after fadein)
MoveCharacter(SHODAN,95,139);
MoveCharacterBlocking(EGO,143,152,1);

But it never gets to the second line (moving EGO). SHODAN appears in the scene and moves correctly to the designated point, but EGO is not in the room. Even tried a character[EGO].room=14 right after MoveCharacter(SHODAN), but it doesnt help. It's like EGO is "stuck" somewhere, and refuses to arrive on the scene!

I've tried everything I can think of. So any help in trying to figure out what's wrong would be appreciated greatly.
Title: Re: EGO wont appear in a new scene
Post by: Gilbert on Thu 24/06/2004 02:38:27
hmmm did you check the "hide player character" checkbox accidentally while editing the room? EGO is your player character right?
Title: Re: EGO wont appear in a new scene
Post by: urgrue on Thu 24/06/2004 09:42:48
yes, its not that.
also of note is that the mouse cursor can be moved, but not cycled. ie its stuck on walk mode, and you cant right click to switch it. just like if the movecharacterblocking was still in effect, which is what i suspect is the case.
Title: Re: EGO wont appear in a new scene
Post by: Gilbert on Thu 24/06/2004 09:47:52
Hmmm are you sure the character is not using a transparent view?

As you set the direct parameter of MoveCharacterBlocking() to 1, there shouldn't be any problem even if he's on a non-walkable area.

Try putting the following line before the two move character lines and see if it makes any difference:
character[EGO].on=1;

[EDIT]
Just tried similar things and it worked for me, is it possible the character is behind a walkbehind?
What version of AGS are you using?
Hopefully that's not an engine bug.
Title: Re: EGO wont appear in a new scene
Post by: urgrue on Thu 24/06/2004 15:06:59
ok, i got it to work. hide player character WAS ticked on after all. although im quite sure i checked it oh, about ten times. either its a UI bug or im smoking crack as usual, i guess.

aside, is it normal that movecharacterblocking while player character is hidden would have the effect of not allowing the right click of the mouse to cycle the different modes?
Title: Re: EGO wont appear in a new scene
Post by: Pumaman on Thu 24/06/2004 23:03:16
While the game is blocked (eg. MoveCharacterBlocking), mouse clicks are disabled, yes.