Hi,
i created a lua file with the SpriteHelper by Bogdan Vladu and read this file with
TextCandy.AddCharset ("…, “…”, "…, “…,”,…). Now I get an error message:
Runtime error
...00gp/T/TemporaryItems/102/Library/lib\_text\_candy.lua:128: ERROR: Invalid parameter passed to sprite.newSpriteSheetFromData(). Missing data.
The new SpriteHelper 1.8.13 by Bogdan Vladu has a new Export and generated other Lua File structure.
In comparison to the old version.
Here is the new lua file structure:
-- This file was generated using SpriteHelper
-- For more informations please visit http://www.spritehelper.org
module(...)
function getSpriteSheetData()
local options = {
-- array of tables representing each frame (required)
frames = {
--FRAME "o":
{
x = 25,
y = 42,
width = 20,
height = 40
},
--FRAME "w":
{
x = 47,
y = 42,
width = 28,
height = 28
},
--FRAME "h":
{
x = 25,
y = 0,
width = 23,
height = 40
},
.......
},
sheetContentWidth = 143,
sheetContentHeight = 147
}
return options
end
Is there a way that the TextCandy compatible with Sprite Candy Helper 1.8.xx?
Sorry for my bad english
[import]uid: 107610 topic_id: 28290 reply_id: 328290[/import]