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.

2D All the way! / Text on top of sprites...

Author
Message
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 13th Mar 2004 18:35
Hi,

I'm sure I got this working once, but now I'm stuck again I basically need the text command to be drawn last so I can see my debug info over my sprites. Any ideas? Here is an example... I've tried changing the order in the loop, adding cls etc.



Cheers.
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 15th Mar 2004 07:33
You either move your sprites to the back of the z-buffer or create text sprites to overlay the game sprites. [Writing to images is painfully slow, but do-able.]
--
TAZ

Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 16th Mar 2004 12:24
Hi, - how do I go about moving the sprites to the back of the z-buffer?

Text sprites, ah, that may do for now. Its mainly in an editor that this is the problem, so speed isn't essential there. In-game data there isn't much, just a score etc. that type of thing, I'll use a predefined sprite "font-set" for those.

Cheers.

Login to post a reply

Server time is: 2025-06-30 06:45:48
Your offset time is: 2025-06-30 06:45:48