The Daily Click ::. Forums ::. Klik Coding Help ::. Line breaks in String Object
 

Post Reply  Post Oekaki 
 

Posted By Message

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
31st March, 2005 at 10:18:00 -

I am making a save function for my game, and I want to use the string object to display save stats. How do I add a line break when setting alternable string in the event editor?

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

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!
31st March, 2005 at 10:30:53 -

You could make a String Object with only a line break in it, then use "Alterable string of "Line break string" in the event editor to get a line break.

I know this is a stupid way to do it, but it's the only way to get a line break :|

 
a/n

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
31st March, 2005 at 11:01:40 -

or you could copy-paste a line break from another string with one in.

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
31st March, 2005 at 11:09:02 -

It works! Thanks Aggggge!

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
31st March, 2005 at 13:11:03 -

Or press Control + Enter. This works for string object, but not for edit objects.

Edit: By the way, how do you put a linebreak in an edit object? I tried Newline$ and pressing control and enter, but they just input 2 squares.

Image Edited by the Author.

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

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
31st March, 2005 at 13:26:24 -

the edit object has to have multi-line ticked in it's properties

 
My signature is never too big!!!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
31st March, 2005 at 13:34:53 -

Noodle: two lines means linebreak in "TGF/MMF language"
just check you've got "multiline" checked in the edit objects properties, like joe said.

 
n/a

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
31st March, 2005 at 14:05:17 -

Cheers Joe - you think I would have looked for that somewhere wouldn't you.

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

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
31st March, 2005 at 17:55:55 -

noodle: no coz you're a damn fool!

 
My signature is never too big!!!

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
1st April, 2005 at 02:20:46 -

As the phizzy said the expression is "Newline$", from what i know it only works in MMF 1.5 .
so you might go: Set Edit text to --> "2pac 4 life" + "Newline$" + "Westside!!!"


 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear
   

Post Reply



 



Advertisement

Worth A Click