Sorry about necroing a four year old post, but I wasn't sure if a new feature suggestion would be a good idea since it would be
mostly a duplicate. However, could a different approach work? Instead of trying to implement long sprite names in the States block or using folder paths as sprite name parts, what if the States block stayed the same, but the namespace where to look for sprites was customisable using an actor property?
Think of a folder structure like this:
Code: Select all
sprites
├spacelab
│├BOOKA0.png
│└BOOKB0.png
└medieval
├BOOKA0.png
└BOOKB0.png
Then, in the actor definition, a SpriteNamespace property could be used that specifies the folder to look in, in this case either "sprites/spacelab" or "sprites/medieval", eg.:
Code: Select all
Default {
SpriteNamespace "sprites/spacelab";
}
States {
Spawn:
BOOK A -1;
Stop;
}
Perhaps the "namespace" could be limited to the sprites folder, and the property would translate to an index offset for the list of sprites?