![]() |
|
Datafile confusion |
Rick
Member #3,572
June 2003
![]() |
I have many nested datafiles and loading is giving me an issue. The layout is as such: So I'm running a few tests and I don't understand what is going on.
Since colorDat has 2 datafiles nested away I would assume colorDat[0] gets the first datafile (WALK) and it does. I would also assume colorDat[1] would get the second datafile (IDLE) but it errors out. Any ideas? I even exported the header file and from I can make of it what I have should be right. #define WARRIOR_GREEN_WALK 0 /* FILE */ #define WARRIOR_GREEN_IDLE 1 /* FILE */ I access WALK with 0, I should be able to access IDLE with 1 right? ======================================================== |
Paul whoknows
Member #5,081
September 2004
![]() |
What a mess!:o ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Rick
Member #3,572
June 2003
![]() |
Really? I think it's neat. Everything is it's own datafile. Anyway green is a colored unit. You can have green/red/blue etc. For now that is the way I'm doing it, later adding transparent colors to the image that I can fill in at run-time. But really it shouldn't matter. Even if I remove GREEN or add another layer, I would think it should work. With this I access the layers based on their Name property in code, and my datafile can have any # of nested datafiles and it would load up without any other info. ======================================================== |
|