Animated sprite

Posted By: Elektron

Animated sprite - 03/20/10 18:56

I have 5 bitmaps making a animated sprite.
I have to use 5 panels and show in sequence one of them then the next and hide previously panel and so on?
Or there is way for use just one panel? If yes, how?

Thanks in advance
Posted By: Espér

Re: Animated sprite - 03/20/10 19:31

the word you are searching for is "window"
=> http://www.conitec.net/beta/apanel-window.htm

Set all images in a row and save it as a single bitmap

Just create a window in the panel, with the size of 1 frame of your bitmap.

Then just run the X-Pos variable of the window, and your sprite is animated in the panel.
Posted By: Doc_Savage

Re: Animated sprite - 03/20/10 19:50

theres no way to just convert the images to a .gif huh?
Posted By: Espér

Re: Animated sprite - 03/20/10 19:51

no.. A7 doesn´t support Gif..

but.. why Gif?

Use TGA with Alpha Channel.. and create a function wich creates a window panel with bitmap at a specified point for you. That saves codelines and time ^^
© 2024 lite-C Forums