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
hello
im stuck in expression go to random layout using goto layout by name
my layout want to random : play0, play1, play2, play3
how to create that i type in textbox ("play0","play1","play2") it give me sytax error
help pls :(
You should use this to separate your layout name and pick random :
System -> Go to Layout By name
tokenat(TextInput.Text, int( random( tokencount(TextInput.Text, ","))), ",")
Develop games in your browser. Powerful, performant & highly capable.
sorry im new in construct 2 can you show me the code
There you go, I made with Construct 3 :
drive.google.com/open
A different approach would be to use choose, Mavericks way is a bit more complex but more open and allows you to pass all layouts as a variable.
choose("layout1", "layout2")