Good day everyone!
I want a game which should be infinite and you hop along a way, which is made of single different groups of objects and these objects should be ordered in different ways every time you restart.
So I thought of functions to build these seperate objects like : function object1(), object2(), objectn()
Then I need a function which sorts the objects in different ways, so i thought of to just call the build functions in different order, so I need the function name which is “object” and the number after that, 1, 2, n, and I wanted to do that with math.random().
How do I call these functions, i had this till now : object … math.random(1,10)()
but it does not work.
Thank you for helping me!