"Komag" wrote:
But removing the quotes could be very useful for me. I'd like to store an array of sprites... (part of a buildRoom function) - later, a function calls:
compositor.NewAnimatedSprite(j*64, i*64, theCurrentRoom[i][j].sprite)
but this doesn't work.
Well it could be that during initialization there is no visibility of
bitmapset.animations (it is "out of scope") or it is not initialized yet. You did not specify in what way it does no work. It's also possible you might be asking for this as "unquoting":
'init phase
item = {
name: "wall",
blocker: TRUE,
sprite: "sprite_brickwall2"
}
...
'peruse phase
compositor.NewAnimatedSprite(j*64, i*64, bitmapset.animations[theCurrentRoom[i][j].sprite])