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, ","))), ",")
sorry im new in construct 2 can you show me the code
Develop games in your browser. Powerful, performant & highly capable.
There you go, I made with Construct 3 :
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.