Display different instances of a variable?

Hi there, sorry for such as simple question here! I’m just making a small ‘higher or lower’ number guessing game and ran across a problem. I want to have ten chances to guess the number, and each time you enter a guess, I want the guess to be displayed down the screen. In the screenshot, you can see the 1, 2, 3 etc would be the 10 guesses. Basically how would I go about saying that for guess 1, put that text into the 1 slot? I was thinking that it would be instances of the text object, but I’m not sure how to tell it for guess 2, change the text of the second instance. Any insight into how to go about doing that?
thanks for any help!

1 Like

You may put an ID variable to the object and use an Index variable to address that and only that instance.

Lets say, you use a cycle to make your text objects:

Make Index Variable = 0

  • Repeat 10 times.
    • create text object
    • text object ID variable = Index Variable
    • Add 1 to Index Variable

You’ll have 10 text objects, ID numbered from 0 to 9.

If you use a variable to count the guest tries, start it on 0 so, to change the text you may use:

  • If text object Variable ID = Variable Guest, then text object text = text input.