Attribute in sting
![rjh5000](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Is it possible to use the display text to do something like this
You have game.lives left
so it then shows
You have 3 lives left
Thanks
You have game.lives left
so it then shows
You have 3 lives left
Thanks
Comments
Create an actor, Display Text behavior
click the "e" to bring up the expression editor and then click on the button that has a downward arrow, click game, then click on the game.attribute you want to display.
2 actors, one that says "You have lives left" Then a 2nd actor with the number (just like I stated above).
Or, I think you can do it this way, "You..have"..game.lives.."lives..left."
That 2nd one may not be totally correct, but I think it's right.
I'll try your way. I knew there would be a way to do it
That 2nd one may not be totally correct, but I think it's right.
Tried the first way too, sort of got it working but the second way looks much better except for the .. is there a way to get space in the string?
Found this
http://gamesalad.com/forums/topic.php?id=2861
Will try this next