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

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
28th December, 2006 at 07:11:46 -

Make a string object (String1 for example), delete what's there and press enter once (to insert the new line character).

Then go to the event editor put (for example):
+click
-set alterable string(text object) to String1 + "your text"
and then it will add a new line with that text?

So instead of a newline character, you insert the characters of your string1, which is a single line break.

 
http://soundcloud.com/normbo - Listen to my music.

Aptennap



Registered
  23/04/2004
Points
  916
28th December, 2006 at 09:23:07 -

with string object you mean text object right?

 
Oh sweet mary.

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!
28th December, 2006 at 09:54:29 -

They're called String objects in MMF. Are they called something different in TGF? Does it matter? Try it and see.

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
28th December, 2006 at 10:42:32 -

Well i did what you said and it didn't work so i geuss it only works in mmf then.

 
Oh sweet mary.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
28th December, 2006 at 11:21:30 -

Heeheehee what a noob. He still doesn't understand
An example: http://hernanzhou.googlepages.com/Linebreaks.gam
If you still don't understand...Well forget it then

 
This space is for rent

Aptennap



Registered
  23/04/2004
Points
  916
28th December, 2006 at 15:39:27 -

Man i must be the biggest n00b evar. I did what you did but it doesnt work with me, I'll forget it

 
Oh sweet mary.

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!
28th December, 2006 at 18:42:28 -

How could it not work with you? Hernan just gave you a gam file with an example.

 
n/a

Aptennap



Registered
  23/04/2004
Points
  916
29th December, 2006 at 05:49:44 -

i added a text object, deleted the text and pressed enter, then i did Set text to AltString(text) + "my text", but it didnt work

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
29th December, 2006 at 05:53:05 -

Whoops im really sorry, it just didnt work with the game i was working on, i made a new game and it worked then,sorry.

 
Oh sweet mary.
   

Post Reply



 



Advertisement

Worth A Click