Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 21/08/2003 14:48:58

Title: problem with different sprite properties
Post by: on Thu 21/08/2003 14:48:58
I designed some character-sprites in MS Paint, they are all bitmaps of the same pixel size (100x140). It is not too difficult to make the charcter look smooth when animating him.
Now I want to make a character-sprite that has different properties,
lets say (100x140) and (150x140).  
Question is:
How can I make an animation of different-size-sprites.
They wouldnt fit together, would they?
Is there something like a hot-spot I can use.
Does anybody know ?  ???


Title: Re:problem with different sprite properties
Post by: TerranRich on Thu 21/08/2003 15:32:22
Why would you want to do that? Why not just use character scaling to use differently-sized characters in your game?
Title: Re:problem with different sprite properties
Post by: Scummbuddy on Thu 21/08/2003 15:43:09
When making an animation, the center of the bottom pixel needs to never move, meaning that you will need to add dead space to some animation frames/ sprites in order to keep the character centered for the animation.
Title: Re:problem with different sprite properties
Post by: Timosity on Thu 21/08/2003 15:47:53
I think I know what you're saying,

eg. in an animation where say, the character puts his arm out to the left

you have the normal character sprite croped to his size and a larger image for the one with the arm out and other sizes in between.

I think in AGS sprites are aligned bottom centre, therefore you can just work out where the centre of each sprite is, Also I think you can change this with this:

SetCharacterViewEx (CHARID, int view, int loop, align)

I think that could help, give it a go and see.

~Tim

Edit: or try what scummbuddy said

Title: Re:problem with different sprite properties
Post by: on Thu 21/08/2003 16:31:14
Thats it. Someone who puts his arms in the air for example.
He would need a bigger frame. Allright then, I'll try out what you suggested. thanks for your help.
Title: Re:problem with different sprite properties
Post by: on Thu 21/08/2003 16:42:12
It works! I just centered the character and it functions all well.
Thanks a lot , people