Hi,
I have been trying to follow the sprite sheet tutorials but I keep not having the result showed on screen
I keep receiving all sort of errors and my lines are exactly like the ones showed in the tutorials (only the file names are different).
this is my last attempt:
Lines of code:
require “sprite”
local data = require (“trogwalk”).getSpriteSheetData()
local sheet = sprite.newSpriteSheetFromData(“trogwalk.png”, data)
local set = sprite.newSpriteSet (sheet, 1, 12)
local instance = sprite.newSprite(set)
instance.x =100
instance.y =100
instance:play()
terminal response:
ement-45AF85F3F5D555A7841E741F96B484A6)
Runtime error
/Users/andrea/Desktop/test for movement/main.lua:5: ‘frameWidth’ must be less than height width
stack traceback:
[C]: ?
[C]: in function ‘newSpriteSheet’
/Users/andrea/Desktop/test for movement/main.lua:5: in main chunk
Runtime error: /Users/andrea/Desktop/test for movement/main.lua:5: ‘frameWidth’ must be less than height width
stack traceback:
[C]: ?
[C]: in function ‘newSpriteSheet’
/Users/andrea/Desktop/test for movement/main.lua:5: in main chunk
I have in my file the data file trogwalk.lua (the data file from Zowptek) and my png sprite 256x 256 with 12 images inside…
i really do not understand what is happening
Thanks for the help!
Pollen
[import]uid: 8464 topic_id: 3654 reply_id: 303654[/import]