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 Professional Discussion / How to create ADV Text Box?

Author
Message
Alis Vigesimum
14
Years of Service
User Offline
Joined: 5th Aug 2011
Location:
Posted: 8th Aug 2011 16:18
I want to try how to create an ADV Text Box. Can someone give me some pointer or source code's sample on how to create an ADV Text Box by utilizing sync command so that each letters wil appear one by one? Can someone also give me some pointers to set the speed of each letters to appear.:-|

P.S:
In case to anyone who doesn't know what an ADV Text Box is, ADV Text Box is box in which most conversation between character is shown in most of RPG.



....CALL FOR HELP!!....
........guten morgen........
...good night...
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 9th Aug 2011 18:52
Heres a quick bit of code to help you. You will have to work out how to put in a delay yourself. It really depends on how you need it to delay, the easiest is a simple wait key, but that freezes everything. If you want movement in the background while doing this you will need a delay rather than an actual pause.

Hope it helps.

http://s6.bitefight.org/c.php?uid=103081
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Aug 2011 18:21
You can use the TIMER() command to add the delay that DVader mentioned. With TIMER() 1000 = 1 second.

DVaders code modified with a TIMER():


Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Aug 2011 19:48
I'm not sure what ADV stands for, but here's an ooold example I made like 6 years ago.

Thought I made a more recent text box than this, but guess this'll have to suffice for now. I might write one later.



Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Aug 2011 20:15
ADV = Advanced.

My signature is NOT a moderator plaything! Stop changing it!
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Aug 2011 20:56
I would have thought Adventure lol.

http://s6.bitefight.org/c.php?uid=103081
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Aug 2011 01:04
Quote: "I would have thought Adventure lol."


I thought that too.

Login to post a reply

Server time is: 2026-07-10 15:31:44
Your offset time is: 2026-07-10 15:31:44