Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dave Gilbert on Fri 03/12/2004 16:51:23

Title: Walking a dog
Post by: Dave Gilbert on Fri 03/12/2004 16:51:23
Hi all,

Here's a theoretical problem for you guys.  I had this idea and I wondered if it was even possible.

Your character is walking a dog on a leash.  You can move your character around the screen and the dog follows you independantly, but remains connected to the leash. 

Does that make sense?  Basically I want the leash to be attached to your character's hand and the dog's collar while both move independantly of each other. 

Any light-shedding appreciated.

-Dave
Title: Re: Walking a dog
Post by: Scummbuddy on Fri 03/12/2004 17:04:34
I remember when someone asked about drawing elastic lines, for creating a physics type game. Like stretching wires to connect a circuit. Maybe it can help you, or give you ideas.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=12390.0
Title: Re: Walking a dog
Post by: Rui 'Trovatore' Pires on Fri 03/12/2004 20:00:37
This thread is also related.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=17610.0
Title: Re: Walking a dog
Post by: Akumayo on Sat 04/12/2004 22:51:38
Instead of messing with all that code, you could just make the man and dog one character.  Then, when drawing the walking animation, make the dog meander and sway, instead of directly folowing the owner.  You could even make the person give the dog a yank now and then, or make the dog try to get in front of the person.
Title: Re: Walking a dog
Post by: Pod on Sun 05/12/2004 18:59:33
"when dogs clip through fences: 4"