Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ktalebian on Tue 28/02/2006 01:37:34

Title: CharacterFollow
Post by: ktalebian on Tue 28/02/2006 01:37:34
Hey
I use this
character[8].FollowCharacter(6, 5);
for character follow; but I get this error:
Type Dismatched: Cannot convert 'int' to 'Character*'
why?
thx
Title: Re: CharacterFollow
Post by: Gilbert on Tue 28/02/2006 02:16:19
character[8].FollowCharacter(character[6], 5);

Or, if you use the script-O-names of the characters (say character[8] is cJohn, character[6] is cMary):
cJohn.FollowCharacter(cMary, 5);