EGO wont appear in a new scene (SOLVED)

Started by urgrue, Wed 23/06/2004 22:06:33

Previous topic - Next topic

urgrue

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.

Gilbert

hmmm did you check the "hide player character" checkbox accidentally while editing the room? EGO is your player character right?

urgrue

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.

Gilbert

#3
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.

urgrue

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?

Pumaman

While the game is blocked (eg. MoveCharacterBlocking), mouse clicks are disabled, yes.

SMF spam blocked by CleanTalk