When i use Set text. it seem to need to be between quote?
If i want to display the value of a variable not the name of it, how do i set it?
The (double) quotes mean "Use the exact text I wrote". If you leave out the quotes, you can use any expression you like. With the expression that reads a private variable, that would be:
Text: Set text to Object.Value('Name_of_the_variable')
You can use the + operator to combine bits of text with the results of expressions; the only catch is that any expressions that evaluate to numbers have to be converted into the corresponding text strings first. Fortunately, str(Expression) does just that.
Text: Set text to "X is " + str(Sprite.X) + " and Y is " + str(SpriteY) + ", and the variable is " + str(Sprite.Value('Variable'))