The Daily Click ::. Forums ::. Klik Coding Help ::. NewLine$
 

Post Reply  Post Oekaki 
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
26th December, 2006 at 17:37:17 -

is a NewLine$ possible with a text object in tgf? Like :
+click
-set alterable string(text object) to NewLine$+"new line"
and then it will add a new line with that text?

 
Oh sweet mary.

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
26th December, 2006 at 17:48:42 -

Yes.

I think.

Don't have TGF

Try it.

Image Edited by the Author.

 
My signature is never too big!!!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
26th December, 2006 at 17:52:11 -

Yeah. Try it.

If it doesn't work, create a string object that contains only a return char (that is, edit the string, delete what's there, press enter once then close it), and insert its text whenever you need a new line.

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
27th December, 2006 at 04:48:56 -

oke thanks

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
27th December, 2006 at 04:53:07 -

no doesn''t work

 
Oh sweet mary.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
27th December, 2006 at 10:33:17 -

No no, Newline$ doesn't exist in TGF. You'd have to use different methods like Radix's.
I also had a method. There's an ascii (? I don't know if it's ascii actually, probably not ) character whcich represents a line break. I stored it in a txt: http://hernanzhou.googlepages.com/break.txt -> it doesnt show up in my WinXP. I could see it in Win98.
Placing this character in a string will create a line break.

 
This space is for rent

steve



Registered
  13/09/2002
Points
  200

VIP Member
27th December, 2006 at 11:09:04 -

the simple way of doing this is copying and pasting this: "
"

^^ copy that and paste it into your code where you need a new line.

 
n/a

Villy

Shab's love pet

Registered
  27/05/2002
Points
  294
27th December, 2006 at 11:15:15 -

aka, ctrl + enter or was it alt + enter.. in the expression editor.

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
27th December, 2006 at 11:34:26 -

Yeh what I used to do was use CTRL + Enter. You had to do it within quote marks though - like a string.

So Type "
Then press CTRL + Enter
Then type " again

So it would look something like:

string("Text object") + "
" + "This is my second string .etc"

 
This is a signature. Have this one on me.

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
27th December, 2006 at 12:09:28 -

I don't think that would work in TGF though.

 
a/n

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
27th December, 2006 at 13:44:33 -

No, all those things don't work in TGF. I know, because I tried to make linebreaks in TGF too.

 
This space is for rent

Aptennap



Registered
  23/04/2004
Points
  916
27th December, 2006 at 17:07:50 -

Crap!

 
Oh sweet mary.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
27th December, 2006 at 18:22:48 -

lol wtf, Radixes string object solution DOES work. Didn't you try that yet?

 
Old member (~2004-2007).

Aptennap



Registered
  23/04/2004
Points
  916
28th December, 2006 at 05:54:20 -

well i didnt really understand how to do it.

 
Oh sweet mary.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
28th December, 2006 at 07:11:42 -

lol, what's not to understand? Just follow Radix's insrtuctions. Either use Radix's method or mine. The rest are filthy lies

 
This space is for rent
   

Post Reply



 



Advertisement

Worth A Click