OK, that's not a great title for this thread but here goes. I'd like to be able to dynamically call a class. So, let's say I have class1, class2, class3 etc. all setup using the gideros.class(Sprite) method.
But, I want to create instances of those classes dynamically, e.g. using "class" and appending the number to the end depending on which one I need at any given time.
I've only been using Lua for a few weeks and I'm wondering if there is any way within it for creating an instance of a class by referencing the class name as a string which I'd concatenate to correspond to the actual class I want.
That still probably makes no sense, but any help appreciated (if you understand any of that).