Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 923 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Text string adds line break #471788
03/19/18 20:46
03/19/18 20:46
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I am using a text object to create an in-game tutorial.

In my text object, I am testing out a simple command for the player to learn.

Quote:
string ("Press ",str_interact," to disengage from console");

So it is supposed to say "Press E to disengage from console"

However, in-game it looks like this:

Quote:
Press
E
to disengage from console

I am not adding any "n" linebreaks to the strings. Shouldn't it be printing these things on the same line?

Re: Text string adds line break [Re: Dooley] #471792
03/19/18 21:00
03/19/18 21:00
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Should or not, it always has been that way.

Re: Text string adds line break [Re: Dooley] #471793
03/19/18 21:02
03/19/18 21:02
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Okay I have solved the problem by using concatenation (str_cat) before calling up my text object.

However, I think it still may be a bug in the text object functionality. I'm using A7..

Re: Text string adds line break [Re: Dooley] #471796
03/19/18 21:08
03/19/18 21:08
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
You may create a panel with digits too.

Re: Text string adds line break [Re: txesmi] #471816
03/20/18 16:14
03/20/18 16:14
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Originally Posted By: txesmi
You may create a panel with digits too.


Yes, thanks. I usually use digits, but in this case I wanted to be able to wrap the text, which I don't believe is possible with digits.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1