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 / dbText doesnt work..

Author
Message
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 21st Mar 2011 19:13
Hey guys, my dbText("TEXTHERE"); is not working
it doesnt appear and go strictly to the game..

how can i fix?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 21st Mar 2011 21:41
You are probably not telling your program to wait for anything. If you are doing a time/loops based wait, know that it sometimes takes the monitor a 1/2 second or so to change modes. Show us some code and perhapse we can help.

The fastest code is the code never written.
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 22nd Mar 2011 16:41
ok srry :S



Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 22nd Mar 2011 18:07
to show what dbText did, you need to sunc (dbSync), but if you have anything 3D being rendered, what dbText rendered is erased after syncing, so it needs to be in a loop so you render it after it was erased after the sync

from what your dbText says, you are trying to use it to display loading info, it could look like



or something a bit more polished


vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 22nd Mar 2011 20:56
thanks hassan its working now

thanks Hawkblood too

Another question: Can i set a time to display it?
Ex: i wanna show the text like 30 secs

PS: if i can put the text like 30 secs then i wanna to make a basic menu saying some tips like the keys to play and stuff, but multiline.


Thanks all

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 23rd Mar 2011 01:35
You can use the dbTimer() to calc length of time.



Warning! May contain Nuts!
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Mar 2011 16:27
ok so i can do this:



and that will display the text 30 seconds then begin the game right?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 23rd Mar 2011 17:43
Try adding sync


The fastest code is the code never written.
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Mar 2011 18:22
it works thanks a lot
hey Hawk and WLGfx can i add you to my credits for the game?
if yes just type the names that you want to me to put there.

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 23rd Mar 2011 18:59
No need. Thanks for the offer though.

The fastest code is the code never written.
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Mar 2011 19:17
oh cmon ur wasting your time helping me.. i think its the right thing to do..
thanks for the help

beside i will put the code here in the forum to new guys and oldest ones in DGDK can check it.

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 24th Mar 2011 00:27
The only need for credits is to the TGC themselves really for all of this on their site.

Every individual has their own expertise level of programming and as time goes by you get better at it. We're only here to help and there's time we ask for help too.

Warning! May contain Nuts!
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 24th Mar 2011 15:44
kk, thanks a lot so

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5

Login to post a reply

Server time is: 2024-11-19 12:31:58
Your offset time is: 2024-11-19 12:31:58