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.

Dark GDK / Text Above Sprites

Author
Message
haliop
User Banned
Posted: 9th Jan 2009 22:12
hi again
i'm working real hard on my project , mostly on the idea
it seems i get along with Dark Gdk and the progress is good not satisfaing but still good , i'm a noobish programmer..

well , i have a strange problem with Sprites and Text
it seems that sometimes Text is above Sprites and sometimes Text is Behind Sprites..

i use : dbDrawToFront(); but still this problem accors i'm trying to build a menu and on the menu i want to have some Numbers
so its dbText(##,##,dbStr(Vars)) but still i don't see the Text Above.. is there something i'm missing?
i also tried working with dbInk , but that dosent' help eigther..

if you can help me , i will be very pleased and i'll appricate it ofcourse.

ty for your time.
nadav.
Murloc
15
Years of Service
User Offline
Joined: 28th Dec 2008
Location: Utena,Lithuania
Posted: 9th Jan 2009 22:26 Edited at: 9th Jan 2009 23:12
dbText(dbSpriteX(ID)+howmuchyouwant,dbSpriteY(ID)+howmuchyouwant,"TEST");

Should solve the problem

EDIT: Oh snap... Wrong answer

Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.
Chamill
16
Years of Service
User Offline
Joined: 29th Sep 2008
Location:
Posted: 10th Jan 2009 21:53
dbCreateBitmap( 1 , 100 , 100 ); //ID of Bitmap and Size ( W * H )
dbText( 0 , 0 , "Chamillion is the king"); //Types the text inside the bitmap
dbGetImage( 1 , 0 , 0 , 100 , 100); // Gets the Image ( The text in that case )
// The next 2 steps are more like for future uses of Bitmap .. Ull delete the current bitmap and set the current "new" bitmap to 0
dbSetCurrentBitmap( 0 );
dbDeleteBitmap(1);

dbSprite( WhateverID , Whateverx , Whatevery , 1 ) // The 1 here is the ID of the image we took in GetImage

Kthxbye!
Chamillion

You can only get smarter by facing a smarter opponent.

Login to post a reply

Server time is: 2024-11-18 10:09:41
Your offset time is: 2024-11-18 10:09:41