Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How to write text in sprites

Author
Message
Tidus
22
Years of Service
User Offline
Joined: 17th Oct 2003
Location:
Posted: 17th Nov 2003 12:26
How can I put texts with the text command in a sprite because when I do this the text don't apear??
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 17th Nov 2003 12:36
You can get sprites to appear behind or in front of text - however, if you want to put text actually in a sprite, your best bet would be to create a bitmap, put the image in that, followed by the text, get the image and then use that as the sprite.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
Hamish McHaggis
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 17th Nov 2003 22:47
It's slow, but the only way.

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 18th Nov 2003 06:17
I have not tried this, but,
could you paste the image to a bitmap
print your text on the bitmap
and then make a memblock from the bitmap
and lastly remake the image from the memblock.

That was alittle more involved the my mind was thinking at first thought. I was thinking about combining two images useing memblocks and saveing the new image, which is fairly simple and alot faster then get image is. But you can't send text to a memblock, so there may not be much of a speed advantage.

CTP

Lifes short, try to enjoy it and not take it to seriously!
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 18th Nov 2003 06:53 Edited at: 18th Nov 2003 06:55
well, that does work and is pretty fast to.



CTP

Lifes short, try to enjoy it and not take it to seriously!

Login to post a reply

Server time is: 2026-07-26 20:16:35
Your offset time is: 2026-07-26 20:16:35