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.

Newcomers DBPro Corner / Printing over a Sprite?

Author
Message
Engulfed by Darkness
21
Years of Service
User Offline
Joined: 31st Mar 2003
Location: Canada
Posted: 8th Apr 2003 07:30
Can any one tell me how to print text over a sprite ???

Thanks
Engulfed by Darkness
21
Years of Service
User Offline
Joined: 31st Mar 2003
Location: Canada
Posted: 8th Apr 2003 07:36
Oh ya!

Are there ways to rotate sprites without animating???

Thanks for any help
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Apr 2003 07:48
this is a simple method where by pasting the text over the image then grabbing it all as one image for use in the sprite




an advanced method is to choose a sprite to be a dynamic updating sprite.

You would want it to sit on top of all other sprites perhaps,
so keep in mind where it lives as u create the sprites.

This is to do with the z order of sprites or the (which sprite is in front) issue.

you can find the length of a string and that can be used to determine the length
of the text when u want to use the get image to grab the right length.

If the font has irregular spaces for characters then you may have to add a buffer or set some rules towards how many maximum characters you can use for the dyna text sprite.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Apr 2003 08:00
If u want to mimic sprites using 3d plains then it gives you access to all the 3d command features



matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 8th Apr 2003 19:20
thats what i do, its 100x faster than using sprites especially if you have big pics

then all you have to do is put the text wherever you want

or write a bitmap text function, which is what i use for the text in my game
Engulfed by Darkness
21
Years of Service
User Offline
Joined: 31st Mar 2003
Location: Canada
Posted: 9th Apr 2003 00:06
Thank for the help guy, i got it al figured out now. x-d

Login to post a reply

Server time is: 2024-09-20 04:02:12
Your offset time is: 2024-09-20 04:02:12