Formatting text display with a game attribute

Hi everybody,
I'm trying to display a line of text that contains a game attribute. I want the line to read as follows:
Lost Squidlies: 12 (or whatever the number of lost squidlies actually is at the moment)
numberOfLostSquidlies is my game attribute.
I've tried to type it into the text box, but it doesn't work that way. I've tried to type it in the expression box like so: "LostSqudlies:"..game.numberOfLostSquidlies -- this works but the expression box won't allow for spaces so the text that gets displayed has no spacing.
Is there a way to properly format multi-word text that includes a game attribute?
How do I go about that?
I'd appreciate any help.
Dave
I'm trying to display a line of text that contains a game attribute. I want the line to read as follows:
Lost Squidlies: 12 (or whatever the number of lost squidlies actually is at the moment)
numberOfLostSquidlies is my game attribute.
I've tried to type it into the text box, but it doesn't work that way. I've tried to type it in the expression box like so: "LostSqudlies:"..game.numberOfLostSquidlies -- this works but the expression box won't allow for spaces so the text that gets displayed has no spacing.
Is there a way to properly format multi-word text that includes a game attribute?
How do I go about that?
I'd appreciate any help.
Dave
Comments