Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: viktor on Thu 05/08/2004 19:58:44

Title: wierd animations- solved
Post by: viktor on Thu 05/08/2004 19:58:44
Well here goes.
The animation is of a guy punching. Ewerithing looks good if I animate it in a nother program but in ags there is a problem. In stead of the character standing in one place and streching his arm he is moved a bit to the right and the arm stretches. I know what the problem is but I don't know how to fix it. It's probably that, that  the loops are al centered. That's why the characters is moved backwards first (the loop with the stretched arm is wider then the one with the arm bent). Is there any way of fixing this problem other than resizing all of the images?
Title: Re: wierd animations
Post by: Darth Mandarb on Thu 05/08/2004 20:17:39
You shouldn't have to resize all the images ... just the canvas size (speaking in Photoshop terms).

Find the widest frame (arm all the way outstretched) and get the width of that image.  Then just add pixels to the left and right of the other frames to make them the same width.

Is that what you meant?  Perhaps I misunderstood?
Title: Re: wierd animations
Post by: viktor on Thu 05/08/2004 20:22:14
I'm not actualy shure if THAT'S the problem, but I'm pretty shure. But yeah you understood right  ;D.  But before I go adding the pixels I would just like to ask if the image has to be totaly centered? In other words do I hawe to add pixels on both sides of the image?
Title: Re: wierd animations
Post by: Darth Mandarb on Thu 05/08/2004 20:59:00
QuoteIn other words do I hawe to add pixels on both sides of the image?
Yes, that's what I would do.Ã,  If the widest frame is 60 pixels wide, and the thinnest is 40 pixels you should add 10 pixels to both sides keeping the character centered.Ã,  Or close to center ... I mean ...

This is confusing.Ã,  All frames should be the same width.Ã,  The character, throwing a punch, is maybe going to step back or something like that.Ã,  That's okay as long as the frames don't get wider ...

Summary:Ã,  Just make all the frames the same width ... that should solve the problem.

Hope I haven't confused you more!!
Title: Re: wierd animations
Post by: viktor on Thu 05/08/2004 21:13:26
Don't wory.  I understood. I'm going to try that now a report back in a little while...
Title: Re: wierd animations
Post by: Ishmael on Thu 05/08/2004 21:23:43
Id's suggest taking a look at the manual... taking a look at SetCharacterViewEx might solve the problem easier.
Title: Re: wierd animations
Post by: viktor on Thu 05/08/2004 21:28:01
I did that. The problem wasnt in the set of the wiew. The problem was in how the character was positioned in the frame. But maybee I missed something in the manual. I'll double check.
Well anyway I solved the problem with the punch. Now for all the other animations. Thatnk good this is a short game.
Title: Re: wierd animations
Post by: Moox on Fri 06/08/2004 00:34:21
That happened to me once, you could try offsetting
Title: Re: wierd animations
Post by: Fabiano on Fri 06/08/2004 13:40:00
or you could add in the animation a small back step before the punch. +)
Title: Re: wierd animations
Post by: viktor on Fri 06/08/2004 13:42:31
well thenks for the idea but i already solved it. thanks anyway.