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 :(
Develop games in your browser. Powerful, performant & highly capable.
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
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")