Hey,
is it possible to check via script, if the given sprite slot even exists?
I'd like to create dynamic sprites from a textbox, but of course the game crashes when I enter an invalid number.
Is there a way to prevent this?
Thanks!
I believe there isn't any way of doing this. For now you'll want to look into this as a hack:
Game.SpriteWidth[int slot] OR Game.SpriteHeight[int slot]
QuoteIf an invalid sprite slot is supplied, 0 will be returned.
That's all I can think of.
Well, that should at least prevent DynamicSprite.Create from crashing.
Thanks!