Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ethan D on Wed 01/04/2009 22:20:39

Title: More effecient way? (Views)
Post by: Ethan D on Wed 01/04/2009 22:20:39
In one of the scenes for my game there were 6 people all sitting around a table then giving  toast and drinking from a glass of wine.
Im posting this to see if anyone knows a better way to do this.  How I did it was I set up for each of the people a new view with four different directions and for each of their movements I had them face a different direction.  Unfortunately they bounced aroud the room a little bit because they were all different sizes and I ended up takeing a section of the background with teh characters there and then having each frame be the same size.... This was very time consuming so I was wondering if anyone had any idea of a simple way to do this.
Title: Re: More effecient way? (Views)
Post by: Khris on Wed 01/04/2009 23:05:30
Sprites for character animations don't need to be equal-sized.
They are positioned in the room using their bottom center, thus if an animation requires the original sprite to be extended
-to the left/right, just add the same amount of pixels to the right/left.
-downwards, add the same amount of pixels to all frames of the animation, then change the character's .z immediately before the animation and reset it to 0 immediately afterwards to compensate for moving up.
Title: Re: More effecient way? (Views)
Post by: Ethan D on Thu 02/04/2009 01:53:02
Alright thanks for the help. I always though sprites located by their bottom left pixel.