Hello!
Im using this great library to write a small game, and now its time to create a few animated characters but i have no idea how to do it in oslib.
What i want is to create animations at a given position.
For example:
void make_anime(int x,int y)
{
c = new animation(x,y)
return...
}
Any ideas how to do it?
Also , what's the use of centerX & Y?
Thanks.
[OSlib] Few questions
Animations ? try this : http://www.playeradvance.org/forum/show ... php?t=2178
(it is in french, but easy to understand with google translation)
CenterX & Y defines the center of the image. By default, they are at the upper left corner of the image.
If you try to rotate the image for example, the image will rotate around his center... try, you will understand.
(it is in french, but easy to understand with google translation)
CenterX & Y defines the center of the image. By default, they are at the upper left corner of the image.
If you try to rotate the image for example, the image will rotate around his center... try, you will understand.
Tutorials about OSLib here
Well , i can do the animation , but i need to create a new object every time..
For example :
Each time one enemy is about to die i want to play the animation at his current position(i know how to this) , but the problem is that each time i kill an enemy the animation will just keep moving at different positions.
So , i need a way to create a new animation every time..!!
For example :
Each time one enemy is about to die i want to play the animation at his current position(i know how to this) , but the problem is that each time i kill an enemy the animation will just keep moving at different positions.
So , i need a way to create a new animation every time..!!