Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rtf on Wed 11/02/2004 23:54:43

Title: MoveCharacter
Post by: rtf on Wed 11/02/2004 23:54:43
Hahaha  OK, I am laughing at myself for the number of posts I put on here.  I'm sorry.

anyway...
I have another problem.  Whenever I do the MoveCharacter command, weather from the Interactions editor or from a script, everything is fine, with no errors.
That is, until I test the game.
Whenever the MoveCharacter command should be called, all the game does is imitate a "Wait" function.


DisplaySpeech (6, "This string is only a test!!!");
Wait (100);
MoveCharacter (1, 210, 84);
DisplaySpeech (1, "I wonder what he was saying...");


Yeah.  So the character should move, but all he does is Wait.

Is there a better command that I should use?  What does MoveCharacterBlocking mean?  Is that right?

Thanks for the help.  I need it becasue there is an important thing in my game that needs this command.

UPDATE:
Could it have anything to do with the "Wait till move is finished" thing in the interactions editor problem?
Title: Re:MoveCharacter
Post by: Takara on Thu 12/02/2004 01:23:20
I would guess what you really want to do is this....

DisplaySpeech (6, "This string is only a test!!!");
MoveCharacterBlocking (1, 210, 84, 0);
DisplaySpeech (1, "I wonder what he was saying...");

This should display speech, move the character, and then display the next speech.  MoveCharacterBlocking prevents anything else happening until the character reaches its destination.  Having the Wait(100) in there would've just caused the game to pause temporarily.

Hope that helps,

Takara.

PS, I like being helpful, so keep asking questions! ;)
Title: Re:MoveCharacter
Post by: rtf on Fri 13/02/2004 01:48:00
Dont worry about the questions

i have a load of them

ps  I loved that Simpsons game