For some reason I can't play a variable in the middle of a GUIText. Here's what I would like to do. Code (csharp): GuiText.text = "There are "+variable" ducks in the pond."; instead of... Code (csharp): GuiText.text = "You notice some ducks in the pond. Total: "+variable; Problem is, it gives me a script error saying that something is out of position. Thanks if you can help.
For everything you want to add too the string you need a +-sign in-front of it. Code (csharp): GuiText.text = "There are "+variable" ducks in the pond."; should be: Code (csharp): GuiText.text = "There are " +variable +" ducks in the pond.";