Animated sprite within a panel?

Posted By: Couzin_Pete

Animated sprite within a panel? - 02/12/09 12:03

Does anyone know how I would go about placing an animated sprite (.bmp) within a panel?

Have tried various things, would like to know if this is possible.

many thanks
Posted By: Couzin_Pete

Re: Animated sprite within a panel? - 02/12/09 12:30

Perhaps I should explain a bit more ^^

I can run, say, 'explosion+11.bmp', and it will animate when I shoot something in A 3D game..

Recently, I've been reading about 2D games and I'm trying to get an animated sprite into a panel - The most recent AUM ( 82 ) has their own space invaders copy.. I want to animate the enemy models within their own panels..

Is it possible?
:P

Hope it explains my problem further smile
Posted By: Widi

Re: Animated sprite within a panel? - 02/12/09 12:51

You can change the bmap of the Panel at yourself.

enemy_panel.bmap = my_bmap_1;
wait(1);
enemy_panel.bmap = my_bmap_2;

and so on...
Posted By: Espér

Re: Animated sprite within a panel? - 02/12/09 12:53

is there a way to animate Buttons too??
Posted By: Couzin_Pete

Re: Animated sprite within a panel? - 02/12/09 13:02

Yeah I've seen that in the AUM 82, I'm working using ideas from that (I've only done 3D prior to this!)

I am aware about changing the images like that, but I want to ANIMATE within the Panel using an animated bitmap (###+11.bmp)
Posted By: Widi

Re: Animated sprite within a panel? - 02/12/09 16:38

@ Espér:
Use one seperate Panel for the button, and so you can animate it at the same.
Or use: pan_setbmap(PANEL*,var type,var num,BMAP*).
I know, it is not THE ONE solution, but it works.
Posted By: dracula

Re: Animated sprite within a panel? - 02/13/09 08:31

I also wanted to do something similar to this: I wanted to have a looping animation (just like an animated GIF)that formed a logo

Any ideas ?
Posted By: MMike

Re: Animated sprite within a panel? - 02/13/09 17:14

It's possible, search forum alittle bit. I know jozzey he did work with it..



Posted By: ptrc1c

Re: Animated sprite within a panel? - 02/13/09 18:03

The solution is in AUM 17.
Posted By: Couzin_Pete

Re: Animated sprite within a panel? - 02/15/09 17:24

Ah ok, thanks laugh
© 2024 lite-C Forums