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
Well, i want to have a text that can handle values, for example something like this:
"The number of the run is" random(5) ", Yay!"
I know the example is invalid, but i want it to be something like this. Can someone help me?
Try plus (+) for concatentate and str( number ) to convert from value to string:
"Value = " + str(random(5)) + "! :-)"[/code:27z64wsd]
Develop games in your browser. Powerful, performant & highly capable.
If you use the text concatenator & then you don't need to use str(). It's converted automatically.
"Value = " & random(5) & "! lol"[/code:2oybl3oj]
"its true..."&newline&"no seriously"
I always use "lol" + "text" the & symbol disturbs me