Display text with an atribute
belotte
Member Posts: 25
Hello.
I have an atribute that holds the score. I have an actor on the stage the has "display text. score".
My question is how do I make it show an "$" in front of the score? I had it as a separate actor and just placed it in front of the score, but as the scor expands, it over runs the "$" and it's hard to read. So I believe it needs to actually be part of the "score". That way it will move dynamically with the score.
But how do I do that?
Thanks,
Richard
I have an atribute that holds the score. I have an actor on the stage the has "display text. score".
My question is how do I make it show an "$" in front of the score? I had it as a separate actor and just placed it in front of the score, but as the scor expands, it over runs the "$" and it's hard to read. So I believe it needs to actually be part of the "score". That way it will move dynamically with the score.
But how do I do that?
Thanks,
Richard
Best Answer
-
whompy Posts: 27Have you tried putting the $ in quotes before the 'display text.score'?
I think you would do it like this: "$"..game.score
You put the $ in quotes, then two dots before game.score
See if that works.
Answers
Thanks a bunch!