help text box , dialog , in RPG game

Non-platform specific questions.

help text box , dialog , in RPG game

Postby Chai » Wed Nov 16, 2005 10:44 pm

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
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Postby makslane » Thu Nov 17, 2005 1:22 am

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");
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Chai » Thu Nov 17, 2005 11:16 pm

thankyou a lot makslane >_<
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest