Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I need the user to push a button and a text box become populated with a random phrase. I'm guessing it would be a string of phrases with separators of some sort with the random function. Anyone have example code or .capx?
Develop games in your browser. Powerful, performant & highly capable.
you could use choose()
on button clicked set text to = choose("this is the first line", "This is the second line", "this is the third line")
another way would be to put the sentences in a dictionary object and use the TokenAt expression.