So, I'm making a game, and i want to know how to program a method, that, for example:
Level 1: 10 knights will spawn
Level 2: 20 knights will spawn
Level 3: 30 knights will spawn, and 10 Mounted Knights
I already have 1 of each made, but i want to know if there is a way to continuously create copies of the same object, that share all of the same stats.
Or, if there is a way to make an array of knights or something, that only spawn if you are in the correct level or less, for example:
Level 1: spawn array of 10 knights
Level 2: spawn another array of 10 knights, with the original array of knights as well
and so on, any help will do.