Moving characters in the background

Started by Paoul, Sun 03/05/2009 01:07:32

Previous topic - Next topic

Paoul

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

Dualnames

There's a character control module that can be found here

That will save you from a lot of pain, trust me.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Paoul


Dualnames

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)
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Paoul

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?

Dualnames

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk