Hello, complete newbie here.
I'm making a 2D platformer - fairly standard stuff. Everything I have managed to make so far has been an amalgamation of different tutorials from all over and thus I have no idea if what I'm attempting now is even the right way to go about it.
If you know a better solution, I'm all ears.
But for the time being, I have made a label where I want quotes to be displayed. On the label script I have an array of the quotes I want and I have managed to make the first quote be picked at random and appear in the label in the scene when the game runs.
What I can't figure out is how to have the quote be replaced by another quote after some time has passed, let's say 10 seconds for example.
All my attempts with the timer function has either made no quotes appear or straight up made the game crash.
This is what my current (working) label script looks like:
var Quote = ["quote1", "quote2", "quote3", "quote4"]
text = (Quote[randi()%Quote.size()])