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! / printing text over a sprite

Author
Message
Inauxas Dicardum
21
Years of Service
User Offline
Joined: 5th Nov 2004
Location:
Posted: 15th Dec 2004 04:49
Does anyone know how to display text via the "Text" command over a sprite? for instance, i made a menu screen out of a sprite for a characters inventory and i would like to display the players gold in the inventory screen, but the text does not display over the sprite unless i set the apha channel of the sprite to a VERY transperant value.
pizzaman
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 15th Dec 2004 09:01 Edited at: 15th Dec 2004 09:03
Theres a few ways to do this:

1. Hide the sprite, use paste sprite to display the sprite then display the text over it. With this method you can still check for sprite collisions.

2. Make the text you want to use as an image then make it a sprite with higher priority (or you could make every letter an individual sprite). This is a messy approach however it does allow a great deal of flexibility for you text.

3. Use the command "draw sprites first", everything will be drawn over the sprites. However if you have 3D objects in view I think these are also draw in front of the sprites - might cause a problem.

pizzaman
dj chainz
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 15th Dec 2004 22:03
lock pixels
do text
unlock pixels

!!!!

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
Torq
22
Years of Service
User Offline
Joined: 18th Jan 2004
Location:
Posted: 25th Dec 2004 03:18 Edited at: 25th Dec 2004 03:19
!

http://badtempergames.tripod.com

Login to post a reply

Server time is: 2026-06-11 14:48:19
Your offset time is: 2026-06-11 14:48:19