Hello! I'm making a game where once you click on the new game button, it sends you to a random level. (I have 10 total levels or scenes)
I was told to do something like this:
And then you would do something like this:
1: changesceneto ( level1) #level1 is packed scene**
2: changesceneto ( level2)
and so on..
So how would I implement this into my code? I put it in, and an error came up saying
Unexpected token: match:
How could I fix this?
Click HERE for code image.