Hi guys,
I'm starting off a project, and I thought that I'd start with a helper plugin for my level builds, i.e. a char-mapped wall system that calculates junctions based on proximity to other similar walls in a grid.
I have 2 main problems:
1) I need 16 images per wall type to function for all permutations of North, South, East, West connected or nor connected. I note that I can't just set up 16 image properties, because there is only one editor, so for this I used animations as an image bank. Clearly using 16 named animations will allow me to animate walls too, woo!
The only problem is, that I can't display the walls as they would appear in runtime (when I've written it), because GetTexture only returns the first frame of the first texture (or am I missing something?).
If I can select the texture of a named animation in edittime, that would be amazing - can anyone help with this?
2) I haven't written any runtime code yet, but it looks as though I can get an array of all instances based on my plugin. Can this be done in edittime too? At the moment, I have declared an array, and I add references to all my instances in it when an IDEInstance is created, this works although I just realised that I haven't handled deletion yet.
It seems to me that the IDE must hold a list of all of the instances, is this accessabile from the edittime code? I'd rather not reinvent if it's there anyway.
Cheers,
Mark