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! / is this even possible?

Author
Message
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 25th Mar 2004 16:46
ive got a sprite which fills up the whole screen and i need to write some text over the top of it. the part im writing the text on is black (RGB 0,0,0) so it should be transparent but it still isnt showing up. can ne1 help?

my games are only as good as the people who play them...
so if my game is crap then its your f******g fault!
Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 25th Mar 2004 17:05
Let us see thine code....

GIve me more power!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 25th Mar 2004 19:17
Well, most likely your sprite is sitting in front of the text. So you can write until doomsday and not see it. You either need to use paste image instead of a sprite [order is important, paste, print, sync], or move the sprite to the back, or do some bitmap magic and write to the sprite and copy it back to the sprite image.
--
TAZ

UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 25th Mar 2004 19:20
well if your using a sprite then find that damn command called display sprite priority or something and have it set to last see if that helps if not then it could be the fact that your text is transparent? i dunno =) let us see the code!!! You always get reliable help that way!

The search continues.

Current project - A space game
Jadelion
22
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 25th Mar 2004 23:38
I usually just write text to a background bitmap, get the image
and Make it into it's own sprite. Simple

...that move was indeed...Bold.
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 26th Mar 2004 00:38 Edited at: 26th Mar 2004 00:39
Maybe if you move the sprite out of the way, then type the text, then put it back where it was it might work, dunno. I think it will. Maybe your sprite doesn't have transparency turned on.

andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 26th Mar 2004 01:12
You can do this if you use Paste Sprite Then hide the sprite. The pasted sprite will stay, and be able to write over.

"All programmers are playwrites and all computers are lousy actors" -Anon
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 27th Mar 2004 23:32
Quote: "Well, most likely your sprite is sitting in front of the text. So you can write until doomsday and not see it. You either need to use paste image instead of a sprite [order is important, paste, print, sync], or move the sprite to the back, or do some bitmap magic and write to the sprite and copy it back to the sprite image.
"

how do you move the sprite to the back?

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, Windows XP, Direct X 9, half-dead CD burner, crappy moniter (15inch), DBC 1.13
~Dragael Software
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 27th Mar 2004 23:42
by setting the sprite priority or you could try this

make a matrix position the camera to look down on the matrix make your sprite a image by doing the texture matrix command and forget everything about the sprite just forget it. Then you can use the set cursor command to position the text you want and then you know what to do after that.

The search continues.

Current project - A space game

Login to post a reply

Server time is: 2025-08-09 02:11:48
Your offset time is: 2025-08-09 02:11:48