Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LeChuck on Thu 12/06/2008 20:25:31

Title: Animating a character while moving (SOLVED)
Post by: LeChuck on Thu 12/06/2008 20:25:31
This problem has been bugging me for ages. Lots of times I want a character to animate specific views while moving. Problem is, if that character for example is moving in a curve, the default walk views will interrupt. (if the character should be moving leftwards while animating loop 7, loop 1 will interrupt and take over).

I've been working around such problems using objects instead of characters, but then there's lots of extra work seeing as you have to resize all objects to fit the size of the character for each walkable areas scaling as you can't scale objects in 2.72.

Any smart solutions to this problem?
Title: Re: Animating a character while moving
Post by: Ishmael on Thu 12/06/2008 20:44:32
I'd begin by trying either repositioning the character manually as the animation progresses, or changing frames according to character location and move the character normally. Or both. The latter does sound easier to do off the top of my head, if locking views actually works how I recall it working. Haven't used it in a while...
Title: Re: Animating a character while moving
Post by: LeChuck on Thu 12/06/2008 20:48:45
It looks like LockView is one of those basic functions I never really cared for learning about or using, and it came back to bite me in the ass. I haven't tested it yet, but according to the manual it should do exactly what I want. Thanks!
Title: Re: Animating a character while moving (SOLVED)
Post by: Snake on Fri 13/06/2008 01:38:32
Be aware that though LockView will work, but you must call StopMoving before. So if you need a smooth movement, bah.

I haven't tried this using the mouse (clicking the ground to move the character) but using keyboard movement can be frustrating.


--Snake
Title: Re: Animating a character while moving (SOLVED)
Post by: Pumaman on Fri 13/06/2008 18:53:40
Bizarrely, I've been meaning to add a Character.Move command that will move the character without doing their walking animation for about the last 5 years, and never seem to get around to it. I'll do it soon, promise!!
Title: Re: Animating a character while moving (SOLVED)
Post by: Elessar on Sat 05/07/2008 22:31:45
Quote from: Pumaman on Fri 13/06/2008 18:53:40Bizarrely, I've been meaning to add a Character.Move command that will move the character without doing their walking animation for about the last 5 years, and never seem to get around to it. I'll do it soon, promise!!
I hope so, it would save a lot of grief! :P
Title: Re: Animating a character while moving (SOLVED)
Post by: Pumaman on Sat 05/07/2008 23:31:16
Ask and thou shalt receive (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=35028.0)