Text with Expression in Text Display
DjangoZ
Member Posts: 40
How do I add text to a text display that displays expression info as well.
For example "Player 1: 280" where 280 = game.score.
I thought just adding the text into the expression editor before the game.score would work but it doesn't. Also quotes, single and double don't make any difference. I'm outta tricks.
Thanks.
For example "Player 1: 280" where 280 = game.score.
I thought just adding the text into the expression editor before the game.score would work but it doesn't. Also quotes, single and double don't make any difference. I'm outta tricks.
Thanks.
Comments
"Player 1:"..game.score
the two dots .. are what you need between the double quotes and your attribute.
Display Text: self.Text .. game.score
Like:
self.Text1 ..
game.Score ..
self.Text2