Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Paoul on Sun 03/05/2009 01:07:32

Title: Moving characters in the background
Post by: Paoul on Sun 03/05/2009 01:07:32
This might seem very basic but I'm just having trouble getting it to work.  Basically I want a character to constantly move around the screen in a set route ive given it despite whatever else is happening in that room. How do I go about doing that? the ccharacter.Walk function seems to not like the idea of that
thanks
Title: Re: Moving characters in the background
Post by: Dualnames on Sun 03/05/2009 01:14:29
There's a character control module that can be found here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28821.msg482601#msg482601)

That will save you from a lot of pain, trust me.
Title: Re: Moving characters in the background
Post by: Paoul on Sun 03/05/2009 01:18:10
thanks
Title: Re: Moving characters in the background
Post by: Dualnames on Sun 03/05/2009 01:19:54
Quote from: paoul on Sun 03/05/2009 01:18:10
thanks

Oh, it would be wise to see some examples from that topic to see how to implement it on your game. A wise move would be to see the Character Module Plugin documentation (for they are very similar)
Title: Re: Moving characters in the background
Post by: Paoul on Sun 03/05/2009 01:23:08
agh so im completely new to this concept. I dont know the first thing about using modules. Can you direct me to the place that can tell me how?
Title: Re: Moving characters in the background
Post by: Dualnames on Sun 03/05/2009 01:24:32
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27474.0

Hope that helps.  :D
Title: Re: Moving characters in the background
Post by: Trent R on Sun 03/05/2009 04:48:27
Quote from: paoul on Sun 03/05/2009 01:07:32
This might seem very basic but I'm just having trouble getting it to work.  Basically I want a character to constantly move around the screen in a set route ive given it despite whatever else is happening in that room. How do I go about doing that? the ccharacter.Walk function seems to not like the idea of that
thanks
What you're looking for is probably the character.AddWaypoint, or a script in rep_exec that checks the NPCs position and sends it somewhere. (there was a topic like that not long ago, lemme try to find it)

[Edit]: Found it. RickJ's code is pretty easy to understand and should be easily adaptable.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=37181.0


~Trent