Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 25/03/2004 10:33:20

Title: char like sam and max
Post by: on Thu 25/03/2004 10:33:20
is it possible to make the main character followed by a second character just if it is far more than x pixels? (where is x is an arbitrary number of pixels). like in the old sam & max.

thx

Cisco
Title: Re:char like sam and max
Post by: Darth Mandarb on Thu 25/03/2004 10:40:28
Sure is!

Look up (in the help file):

FollowCharacter
FollowCharacterEx

That's all you'll need :)  But if you need more help just let us know!

Welcome to the forums by the way!

~ d
Title: Re:char like sam and max
Post by: Ben on Thu 25/03/2004 19:57:57
But in Sam & Max, Max sort of pokes around while he waits for Sam.. In other words, he's not always following Sam directly.  Instead of using FollowCharacter, it might be better to have the sidekick character walking around and animating in the room script, and only make him walk toward the player character when he moves to a different scene, or another side of the room..
Title: Re:char like sam and max
Post by: on Fri 26/03/2004 09:20:17
thank you guys for your answers! i will try to do something and then i'll let you know!
see you
cisco