Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Volcan on Mon 30/06/2003 04:43:17

Title: Problems with MoveCharacter
Post by: Volcan on Mon 30/06/2003 04:43:17
In the room script, how to set the MoveCharacter True?

I can do it by selecting commands with the mouse but not in room script.

I tried MoveCharacter(GINA,210,186, True); but it doesn't work.

Thanks in advance.


Volcan


Title: Re:Problems with MoveCharacter
Post by: Gilbert on Mon 30/06/2003 05:06:28
Hmmm I think there may be something missing in the interaction editor.

If it's set to true the script function should be MoveCharacterBlocking()

I think CJ should have a look at it.
Title: Re:Problems with MoveCharacter
Post by: Pumaman on Mon 30/06/2003 20:00:26
Yeah, the Text Script example for MoveCharacter is wrong when you set Wait to True. It's a bit confusing I agree, but it's actually rather difficult to fix due to the way the interaction editor works. I'll look into it.
Title: Re:Problems with MoveCharacter
Post by: juncmodule on Mon 30/06/2003 21:51:43
I may be way off but is the problem with the "Text Script Equivalent Code"? I think that is where Volcan's confusion is from.

My suggestion: When a person sets the value to true just change the equivalent code to read "MoveCharacterBlocking (CHARID, int x, int y, 0);"

The little Text Script Equivalent Code thing is how I learned to script in AGS. I believe I encountered the same problem. Having that as acurate as possible is a big help for people new to scripting.

later,
-junc

EDIT: or maybe this is what you meant would be difficult to fix Chris...?
Title: Re:Problems with MoveCharacter
Post by: Pumaman on Mon 30/06/2003 22:52:59
Correct, that is what we're talking about.

And yes, it's what is difficult to fix because currently the interaction editor just supports one text script line for each interaction command.
Title: Re:Problems with MoveCharacter
Post by: Volcan on Tue 01/07/2003 00:19:02
Thanks folks. It works.

Making ags games is still new for me and I confused
about MoveCharacter command.

I made DG: the search of the batteries but it was not a serious game.

The next one should be better.


Robin Gravel