2d animation please help

Advanced game related topics
z3phir2003
User
User
Posts: 49
Joined: Wed Jan 12, 2005 3:50 pm

2d animation please help

Post 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
Registered user of PureBasic 4.02
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post 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)
z3phir2003
User
User
Posts: 49
Joined: Wed Jan 12, 2005 3:50 pm

10x for the quick answer

Post 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
Registered user of PureBasic 4.02
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post 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
Post Reply