Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mouth for war on Tue 22/07/2008 18:34:39

Title: Question about animations
Post by: Mouth for war on Tue 22/07/2008 18:34:39
Ok! I hope i can make myself understandable hehe. My question is about animations.
Let´s say for example that I want to make an animation where my character uses a fishingpole. that would make the animationframes rather big since the pole would be quite long.

If I shrink all frames when I, for example make a walkcycle so there is no space around the guy, the animation doesn't play right, it gets...well...jumpy if you know what i mean? so i have to make all frames of the walking character as big as the biggest walkingframe. is there someway to get past that in AGS? I use Click and Create(same as The games factory) when i draw my backgrounds/animations and there you can set actionpoints and hotspots on all frames so they don't have to be in the same size...can i do that in AGS somehow?

If i create an animation with the character fishing i don't want all the other animations of the character to be like 450*300 pixels or whatever. I really hope you understand what i'm trying to say here...and since i'm swedish my english isn't perfect hehe...
Title: Re: Question about animations
Post by: Khris on Tue 22/07/2008 19:17:28
With characters the pivot is the bottom center of the sprite.
You don't even need all walkcycle frames to be equal in size as long as the characters is always centered.

So say you start with the standing frame facing right and add 120 pixels to the right side to draw the fishing pole, simply add 120 to the left side also.

Alternatively, use player.x+=60; immediately before the animation.