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?
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?
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?
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!!
Don't wory. I understood. I'm going to try that now a report back in a little while...
Id's suggest taking a look at the manual... taking a look at SetCharacterViewEx might solve the problem easier.
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.
That happened to me once, you could try offsetting
or you could add in the animation a small back step before the punch. +)
well thenks for the idea but i already solved it. thanks anyway.