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 / simple dbPrint question

Author
Message
Majere
15
Years of Service
User Offline
Joined: 15th Nov 2009
Location:
Posted: 15th Nov 2009 23:33
In C++ I was able to make a quick little function that would display one letter every 50 milliseconds, you know, standard fare in an RPG.

Say("Hello.")

void Say(char *dialogue)
{
int length,x;
length = strlen(dialogue);
for (x=0; x<length; x++)
{
cout << dialogue[x];
Sleep(0);
}
}

How to do the same thing with dbPrint? dbPrint(dialogue[x]) in a for loop doesn't work properly, and I'm not too sure about how dbPrint works exactly to make up some new code for it.

Thank you =]
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 16th Nov 2009 06:32
Not sure about DbPrint try using

dbText ( 610, 5, "Hewwo");
Majere
15
Years of Service
User Offline
Joined: 15th Nov 2009
Location:
Posted: 17th Nov 2009 07:54
Doesn't work. Anyone have any ideas?

Much thanks would be appreciated!

Login to post a reply

Server time is: 2024-11-20 09:16:11
Your offset time is: 2024-11-20 09:16:11