New line in expression editor?
I'm trying to display text to look like this:
"Stock:
[game.steel_stock]"
However, I'm not sure how to do this. I have to use the expression editor in order to show the variable, and the expression editor ignores the new lines. I've tried this:
"Stock:"..
game.steel_stock
The expression editor ignored the new line and placed everything on one line.
Then I tried this:
"Stock:
"..game.steel_stock
I got "Invalid Expression."
So how do I display the text the way I want to?
"Stock:
[game.steel_stock]"
However, I'm not sure how to do this. I have to use the expression editor in order to show the variable, and the expression editor ignores the new lines. I've tried this:
"Stock:"..
game.steel_stock
The expression editor ignored the new line and placed everything on one line.
Then I tried this:
"Stock:
"..game.steel_stock
I got "Invalid Expression."
So how do I display the text the way I want to?
Comments
For Your Example this would be the code to use.
"Stock: \n".. game.Steel_Stock
the important thing is \n to get the new line, and to get a space between the typed out words within your Quotes you use option+space.
Hope this helps.
http://gamesalad.com/game/45451
Its downloadable in GameSalad. the online thing is not loading for me right now. seems several people are having the same issue. http://gamesalad.com/forums/topic.php?id=33362
Synthesis did a great post on the subject but the web has eaten most of it.
http://gamesalad.com/forums/topic.php?id=10507
This is probably the best of the rest as it points you in the right direction
http://gamesalad.com/forums/topic.php?id=10483#post-76695 (no surprise to see that coming from ORBZ) for further investigation ->
http://itee.uq.edu.au/~comp2303/Leslie_C_ref/C/FUNCTIONS/escape.html
many of which work .