Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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.