Page 1 of 1
2d animation please help
Posted: Wed Jan 12, 2005 3:59 pm
by z3phir2003
hi. i'm new to game design and to purebasic so if this question is stupid sorry.
i'm traing to make a animation of a character depending on the keypressed
but i have around 31 sprites of that character (bmp images) with 4 images is easy but with 31 i'm going crazy. anyone has any example on how to move such a character (with a large number of sprites)?
the character is seen from the top.
10x in advance for any help
Posted: Wed Jan 12, 2005 7:48 pm
by Dräc
Please, use the search button and you will find many answers to your question(s)…
Well... for sprite animation look -for example- to the PureTools libraries from Danilo that contain the good AnimSprite library (
http://www.purearea.net/pb/english/index.htm)
10x for the quick answer
Posted: Thu Jan 13, 2005 4:25 am
by z3phir2003
10x for the link the library is good it dose what i need but i need to know any aditional library i use ads anything to my project ? what i mean if it uses more RAM,CPU it makes the exe bigger the the normal Purebasic functions ?
and the animation i wanted can't be made with normal purebasic functions ?
10x for all the help
Posted: Thu Jan 13, 2005 8:35 am
by Dräc
You can’t directly perform an animation using one PB instructions.
You need to build your own animation sprite engine.
It is the raison why that some additional PB user libraries exist like Animsprite library.
The first way to build your own animation sprite engine is to use the ClipSprite() function technique.
An explicit coding of this can be found here (
click here to go to the french forum associated discussion):
http://www.ifrance.com/dr-dri/Animation.rar