wierd animations- solved

Started by viktor, Thu 05/08/2004 19:58:44

Previous topic - Next topic

viktor

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?
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Darth Mandarb

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?

viktor

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?
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Darth Mandarb

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!!

viktor

Don't wory.  I understood. I'm going to try that now a report back in a little while...
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Ishmael

Id's suggest taking a look at the manual... taking a look at SetCharacterViewEx might solve the problem easier.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

viktor

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.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Moox

That happened to me once, you could try offsetting

Fabiano

or you could add in the animation a small back step before the punch. +)
Yeah, yeah, It happens. A lot.

viktor

well thenks for the idea but i already solved it. thanks anyway.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

SMF spam blocked by CleanTalk