About sprites

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

About sprites

apeine
I have some doubts about sprites.
Sprites can only be created using external BMPs? If not, how can I
create a sprite using an on-screen drawing?
Regards,

Alfredo

Reply | Threaded
Open this post in threaded view
|

Re: About sprites

migueletto-2
Hi,

> I have some doubts about sprites.
> Sprites can only be created using external BMPs? If not, how can I
> create a sprite using an on-screen drawing?

It is not possible to use on-screen drawing or screen buffers in a
sprite. Sprite bitmaps are stored only in bitmap resources of type "Tbmp".

First you must open the resource with a call to resource.open() and
then use the returned handle in the sprite.add() call.

Regards,
Marcio.