I have 10 different words/quotes and every time I go to a layout, I want it to randomly pick which one to say. How would I do that? I don't know how to make construct choose something randomly.
use the 'choose' expression, it randomly returns one out of however many strings
set text to choose( text1, text2, text3, etc)
Develop games in your browser. Powerful, performant & highly capable.
Thanks. It works fine, but how would I make it stay at one word?
I have this:
[Text Object]Word ---> Is visible ---> [T] Set Text to choose("text1", "text2", "text3")
This just makes it cycle through all of the words.
Nevermind just figured it out. For future reference I just made a variable equal to 0. When the layout is visible I just checked if the variable was equal to zero and made it equal to one.
As for the text, I just added another condition to check if the variable is equal to zero.
You could also put it in a group and disable the group at the end of the event. :)