FaceLocation [solved]

Started by Candle, Mon 24/04/2006 19:47:29

Previous topic - Next topic

Candle

Almost afraid to ask questions now as not sure what youthink is ok to ask?
I want player to faces east then west then south .
But he only faces south then east and stays there/
the room is 1098x 200
Code: ags

character[MELT].Say("Drake?");
character[MELT].Say(".........");
character[MELT].FaceLocation(character[MELT].x + 150, character[MELT].y);
character[MELT].Say("DRAKE!");
Wait(5);
character[MELT].FaceLocation(character[MELT].x + 360, character[MELT].y);
character[MELT].Say("Now where did he go?");
character[MELT].FaceLocation(character[MELT].x + 150, character[MELT].y);
character[MELT].Say("......");
  Wait(20);
character[MELT].Say("Shit, I have to find him now and the Chief.");
character[MELT].FaceLocation(character[MELT].x + 50, character[MELT].y);

So whats the deal is this a Beginners Technical Questions help forum or something else?

DoorKnobHandle

For east, west and south this should work:

Code: ags

character[MELT].Say ( "Drake?" );
character[MELT].Say ( "..." );

// face east
character[MELT].FaceLocation ( character[MELT].x + 10, character[MELT].y );
character[MELT].Say ( "DRAKE!" );

Wait ( 20 );

// face west
character[MELT].FaceLocation ( character[MELT].x - 10, character[MELT].y );
character[MELT].Say ( "Now where did he go?" );

// face south
character[MELT].FaceLocation ( character[MELT].x, character[MELT].y + 10 );
character[MELT].Say ( "..." );

Wait ( 20 );

character[MELT].Say ( "Shit, I have to find him now and the Chief." );


Your question is perfectly fine to be asked in here, I believe!

Candle

Thank you. it was the + - I didn't get , ok.

SMF spam blocked by CleanTalk