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 / my texts are behind the sprites

Author
Message
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 10th Dec 2011 15:09
anyone know how to make my texts in front of a sprite or something like that.. :o

-Excellence deals with weak people-
Hassan
14
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 11th Dec 2011 13:03
use dbDrawSpritesFirst ( ); before your loop

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 12th Dec 2011 17:00
Hide all your sprites first.
In your loop:
dbPasteSprite(..)
dbText(..)

This will put your sprites on the screen and then any text you place *after* the "paste" will show up on top of your sprites.

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 19th Dec 2011 11:30


this is my code. i want the text to show how many percent the sprite regarding to its width. the sprite is a loading bar so it changes time to time as i finished loading but i didnt write it coz i think its useless

but still i cant make it right. please help

-Excellence deals with weak people-
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Dec 2011 05:41
After your dbLoadImage(..) you need to declare the sprite:
dbSprite(1,0,0,1);
then hide it using dbHideSprite(1);
and this should work with the rest of your code, except you don't need dbCLS();

For a "loading bar" you don't even need a sprite. You could use dbBox(..) and adjust the second X value with the percentage.

There are several ways you can make a loading bar.....

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 5th Jan 2012 05:34
thanks so much it worked now.

but another problem.. what if i wanted another sprite after the text is shown..

so, background > text > image.. and the image has transparency of 50% so the texts and images behind it will be partly shown..

how will i make image after the text?

-Excellence deals with weak people-
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 5th Jan 2012 15:23
You do the method in reverse.
//paste whatever sprites you want behind the text
//do the text
//paste whatever sprites you want over the text
//dbSync();

The fastest code is the code never written.
lllll V E N O M lllll
12
Years of Service
User Offline
Joined: 3rd Jan 2012
Location:
Posted: 5th Jan 2012 15:53
ur all wrong u have to declare the priority of the image just buy the priority u set what images are infront of what ones

lllllsp1d3rlllll
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jan 2012 16:41
Quote: "ur all wrong"


Second warning, nice smiley attitude towards your fellow forum dwellers please .

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 5th Jan 2012 16:51
@lllll V E N O M lllll
Have you heard the expression "there is more than one way to skin a cat" ?

I have used my method and I know it works. See any of my works on the forum. If they have text over sprites, then I'm using it there.

This might get me in trouble, but I have looked and I don't see anything on the forum posted by you that is anything but inflamatory. No works. No nice things said about others. Nothing but venemous remarks. Is that why you call yourself that? You provide nothing to the forum, but anger.

The fastest code is the code never written.
lllll V E N O M lllll
12
Years of Service
User Offline
Joined: 3rd Jan 2012
Location:
Posted: 5th Jan 2012 19:58
i dont call my self any thing im named venom by my collegues cous im a hacker lmao pay attention learn tcp/ip i program vb c++ vb.net html java python php i build web sites and buid computers from scratch when somone like me knows as much as i do u tend not to have any respect for lamers that dont take the time to learn and what they have learned they act like its a bigg secret and dont want to help somone out iv gotten 0 help from this forum cous nobody has any respect as a programer funny how i post hole source codes see venom-codings.bravehost.com just make shure u dont get keylogged

lllllsp1d3rlllll
Mireben
15
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 5th Jan 2012 20:43
Quote: "declare the priority of the image "


Priority works for sprites but not for text, that's why Hawkblood's method is needed.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jan 2012 22:12
Strike 3 Venom, enjoy your break.

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 5th Jan 2012 22:59
@lllll V E N O M lllll
Quote: "iv gotten 0 help from this forum cous nobody has any respect as a programer "

That is totally incorrect. You get no help because you are a jerk that asks a question and when you get an answer, you spew "venom" at them. Did your parents not buy you that pony you wanted when you were 6?

You don't know me or my abilities. I don't assume to know more than you and you should do the same. We don't come to this forum to tell everyone how great we are, we come to get help and to give it. I'm sure your hacking abilities are what you say, but there is no need to threaten me or anyone else.

And as far as hacking, people that hack others are just scared to confront them face to face.

This may be of no consiquence to you, but I will neither help you or talk to you anymore. Have a nice life.

The fastest code is the code never written.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jan 2012 23:13
It's been dealt with, time to get back on topic.

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2012 00:09
Sorry to all for the rant.

@Chan
Did you get what you were looking for?

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 6th Jan 2012 00:15
yes i tried yours but why its not showing the sprites when i use dbCLS?

-Excellence deals with weak people-
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2012 01:01
Post your code. I would not dbCLS, but I think I can figure out the problem if I see the code.

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 6th Jan 2012 01:16 Edited at: 6th Jan 2012 01:17
main


kFunc.LoadImage


-Excellence deals with weak people-
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2012 01:23
In this section of code:

you are clearing everything before dbSync().
Take out the dbCLS() and try it.

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 6th Jan 2012 01:42
it works well but i have issues before that needs dbCLS to function right. what if it happends again?

-Excellence deals with weak people-
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2012 01:51
We can deal with them as they come. Sometimes problems are self-induced and I think using of dbCLS() tricked you into thinking it was fixed, when it in fact only masked the problem.

As I said, we can deal with problems as they arise.

The fastest code is the code never written.
chan
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 6th Jan 2012 02:02
ok then.. thanks alot you helped me progress my project

-Excellence deals with weak people-

Login to post a reply

Server time is: 2024-03-29 12:59:38
Your offset time is: 2024-03-29 12:59:38