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 Discussion / text over sprite

Author
Message
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 7th Nov 2002 23:04
hilo, ive had this problem since i was born and used to get around it the long way, anywayz:

when i try to put text over a sprite (with either print, or text) i can never see it. Its a pain though, as i used to get around it by making bmp's with text in (but now ive become size conscious because im going to put my latest development on the web). I know its not just me, as ive talked to load of people who have this same problem.

Does anyone know how to do it? (maybe raven can save me again )

thanx.
www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
TheCyborg
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 8th Nov 2002 00:12
I also had this problem in a Tetris game. I found out that you have to print the text AFTER the sprites.

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 8th Nov 2002 21:31
***
I found out that you have to print the text AFTER the sprites.
***

thats what im doing and it still doesnt work

actually i think ive just thought of the problem...

sprite 1,0,0,1
text stuff
do
mouse stuff
sync
loop

it might work if i update the text inside of the actually loop, i'll try it out...

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 8th Nov 2002 21:46
still dont wotk

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 8th Nov 2002 21:47
*work

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Nov 2002 22:18
Have you looked at Draw Sprites First and Draw Sprites Last ?

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Nov 2002 22:22
Scratch that! that`s for drawing behind or in front of 3D!

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 8th Nov 2002 22:28
hmm never heard of those commands.

your description of them makes them sound like draw to front and draw to back

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Nov 2002 22:42
whoops! Sorry, that's a DBPro thing hehe

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 8th Nov 2002 23:05
roflz

if only dbpro worked on my machine...hmmm, shame. Maybe i'll buy me a geforce2 so i can run it

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Nov 2002 23:46
Well, when you eventualy get DBPro working, you can place text over a sprite with the help of Draw Sprites First.



"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 9th Nov 2002 13:34
great

hmmm, maybe i'll buy a whole new 'puter. I looked at the motherboard ive got slashed in now, and the AGP slot (if it is an AGP slot) looks weired. Its made out of two back2back mini modem slots (dunno what theyre called). I'll see if its got any info on it on the intel site (i dont want to put an AGP card in a slot made for something totally different )

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 9th Nov 2002 13:37
nice, ive just been told by one of my mates over irc to get a geforce 4 mx420 pci. I thought video cards in pci slots was ancient history; i'd still rather shove it in an AGP slot though, i'll find out if the weired thing on my mboard is AGP...

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 9th Nov 2002 13:39
or a Geforce2 pci card

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 9th Nov 2002 14:07
anyway, my project is on hold untill i can do this
ive also tried putting a big black square on my bmp, and making the sprite transparent, and shoving the text in the hole, but it doesnt work.

I guess if i cant figure out a way by tonight, i'll just put the text on top of a coloured background (no sprite :S).

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
TheCyborg
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 11th Nov 2002 10:07
Why don't you update both text and sprite inside the loop?
Have you made the sprite transparent?

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Nov 2002 10:19
howdy,
Webdext was the one who helped me so the information panel for sprites by dynamically assigning an iamge to a sprite
used specifically for the info and above all the rest

KEvil cre helped me with the drag n drop component as I couldnt work out one aspect of it.
thats a bonus u get since its part of this snippet.



Login to post a reply

Server time is: 2024-04-20 08:45:25
Your offset time is: 2024-04-20 08:45:25