Game_Text: How do I make a line break Created 16 years ago2008-06-22 03:34:25 UTC by HLGenius HLGenius

Created 16 years ago2008-06-22 03:34:25 UTC by HLGenius HLGenius

Posted 16 years ago2008-06-22 03:34:25 UTC Post #251732
:D So...like I said in the title...How do I make a line break with a game_text entity?

Thanks in advance...
Posted 16 years ago2008-06-22 07:55:48 UTC Post #251736
Simple. Type \n (or was it /n?) in the property field where you want to have a new line to begin.

So for example:

"This is line one.\nThis is line two."

Im not sure if you need to type space or not, so it could also be:

"This is line one. \n This is line two."

So try this all out, and one of them will work.
Posted 16 years ago2008-06-22 07:57:06 UTC Post #251737
I believe you type /h/ or something
I fail to remember


Edit: MUZZEH
He's right and I'm wrong
Madcow MadcowSpy zappin my udder
Posted 16 years ago2008-06-22 08:26:46 UTC Post #251738
as a programmer muzz you should know for certain it's \n, not /n :P

then again you're probably used to VbCrLf.
Penguinboy PenguinboyHaha, I died again!
Posted 16 years ago2008-06-22 08:54:59 UTC Post #251739
as a programmer muzz you should know for certain it's \n, not /n :P
I don't use C++. :P \n is a C++ thingy.
There's no such thing as \n in VB though.
Posted 16 years ago2008-06-22 09:12:04 UTC Post #251740
not just c++, nearly every language :P
Penguinboy PenguinboyHaha, I died again!
Posted 16 years ago2008-06-22 09:27:11 UTC Post #251741
No, cuz \n is not available in VB.NET. VB.NET's equilivent is vbCrLf, as you pointed out. The syntax in every programming might be different, the purpose is the same: creating a new line.

So, if you don't use C++, like me, then how would i know? :)
Posted 16 years ago2008-06-22 09:35:16 UTC Post #251742
//is comment in AS3:) Or a divide operator offcourse:P
Posted 16 years ago2008-06-22 09:58:01 UTC Post #251743
that's why i said nearly. \n is commonly recognised as the "new line" character, and is in perl, python, C/C++, java, PHP, and more.

fyi, VbCrLf is equivalent to \r\n, which is a carriage return and a line feed (the windows implementation of a newline). linux and OSX use just \n.

anyway, this is ridiculously off-topic, but 'tis okay because the question was answered already :P
Penguinboy PenguinboyHaha, I died again!
Posted 16 years ago2008-06-22 10:03:18 UTC Post #251744
I suggest making a new thread about this one... :)
Posted 16 years ago2008-06-22 10:28:56 UTC Post #251745
No, we're done.
You must be logged in to post a response.