Images and sprites...

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Skipsy.

Humm still working on 2D....

Does anybody know how it is possible to draw sprites on a #image ?
Let me be a bit more clear :
I have a background image that I load with LoadImage, and I can draw
with DrawImage.
Then I draw a couple of sprites. I would like to not have these
sprites to be draw in the screen (ID) but in the #image.

What a headhache :cry:
Thks

"If you want to touch the sky,
f**k a duck and try to fly"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

why not display the background image also as a sprite... then have a look at usebuffer in the manual, and you are set...

so long

kendrel
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Skipsy.

Well I thought about this solution as the latest one because of
the image size (640x480 24bits).

Is there any PB limitations about sprites size...

Thks.

"If you want to touch the sky,
f**k a duck and try to fly"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

well, i have done it the way i told you and everything just worked fine.

so long

kendrel
Post Reply