I am currently building an endless runner that should spawn predefined level blocks.
Current situation:
I have a layout which contains all the level blocks as separate tilemap objects, so that I can call them separately.
There are several problems with this solution:
1.) For every different behaviour (collision, solid etc) I need to create a new tilemap object and lay it over each other. This results in a huge amount of objects which are difficult to manage
2.) The level blocks need different graphics depending on various factors. Tilemaps cannot change graphics on the fly. Again, I would need to create a new set of tilemaps for every level theme which is not doable.
I am pretty sure that there is a well known way to handle situations like this. Any ideas?