Hello,
how to put an width and an height properties for the sprite ?
I only find by using the addEventListener-sprite, and changing the width and height at each frame, like below :
local sp=display.newSprite( g,sheet, sequence ) sp:addEventListener( "sprite", function(ev) sp.width=40 sp.height=40 end )
when I try by writting
sp.width=40 sp.height=40
this only change the width and height of the first sprite only, not all.
Did you have a better method ?
Thanks.