Page 1 of 1

help text box , dialog , in RPG game

PostPosted: Wed Nov 16, 2005 10:44 pm
by Chai
when i want the character to talk with another character
i use this scrip to chang the text
Code: Select all
strcpy(Textdialog.text, your text here");


but when the text or dialog is long . very long like
Code: Select all
strcpy(Textdialog.text, "hello good morning! how are you ! what about this morning ? i think it's very a good day. yah good day");


it's too long and the text or dialog is out of screen
my question is " How to make the sentent to the new line when i use this scrip? "

This is the very good program I has ever seen for created the game.
thank you everyone

PostPosted: Thu Nov 17, 2005 1:22 am
by makslane
Use \n to change the line:

strcpy(Textdialog.text, "hello good morning!\n how are you ! what about this morning ?\n i think it's very a good day. yah good day");

PostPosted: Thu Nov 17, 2005 11:16 pm
by Chai
thankyou a lot makslane >_<