@BonBon - just copy the system folder from another project into the demo. I encountered that issue as well 😛
@Venka - thanks for the feedback 🙂
I think you misunderstand what I meant.
Its not that you can have more than 1 bitmap per sprite, well you can if you just put them into another variable, but its more that the excess sprites arent needed.
For an example, you could have done...
@bitmap_array = []@bitmap_array << Cache.wardrobe("Base Image", hue)@bitmap_array << Cache.wardrobe("Clothes", hue)@bitmap_array << Cache.wardrobe("Hair", hue)# ... and so onand then just blt'd each bitmap into the sprite your actually using.
Hell, you could go a step further and hold the aforementioned bitmap array (or a hash) in a module somewhere and cache the data so that the bitmap are only refreshed when a character changes outfit and the other bitmaps remain in memory - which is fine as they are constantly getting used anyway.
^ that would ensure that the bitmaps are only being created when they need to be.
^^ See, I couldn't be bothered with all that, so I kept my entry fairy simple 🙂
Also - the face / character images used for each outfit (in my script) are defined in the outfit hash. They can be called whatever you want, I named mine 1,2,3,4,5... for ease of use 🙂
@Venka - thanks for the feedback 🙂
I think you misunderstand what I meant.
Its not that you can have more than 1 bitmap per sprite, well you can if you just put them into another variable, but its more that the excess sprites arent needed.
For an example, you could have done...
@bitmap_array = []@bitmap_array << Cache.wardrobe("Base Image", hue)@bitmap_array << Cache.wardrobe("Clothes", hue)@bitmap_array << Cache.wardrobe("Hair", hue)# ... and so onand then just blt'd each bitmap into the sprite your actually using.
Hell, you could go a step further and hold the aforementioned bitmap array (or a hash) in a module somewhere and cache the data so that the bitmap are only refreshed when a character changes outfit and the other bitmaps remain in memory - which is fine as they are constantly getting used anyway.
^ that would ensure that the bitmaps are only being created when they need to be.
^^ See, I couldn't be bothered with all that, so I kept my entry fairy simple 🙂
Also - the face / character images used for each outfit (in my script) are defined in the outfit hash. They can be called whatever you want, I named mine 1,2,3,4,5... for ease of use 🙂