Do you see any incosistences when using setReferencePoint with spritesheets ?
For example, try the following with uma.png and uma.lua files from HorseAnimation sample project which comes with the new Game Edition. The image seems to be slightly shifted from where it should be.
[lua]require “sprite”
local myspritesheet = sprite.newSpriteSheetFromData( “uma.png”, require(“uma”).getSpriteSheetData() )
local spriteSet = sprite.newSpriteSet(myspritesheet,1,1)
sprite.add(spriteSet,“myAnimation1”,1,1,1000,0)
local spriteInstance = sprite.newSprite(spriteSet)
spriteInstance:setReferencePoint(display.TopLeftReferencePoint)
spriteInstance.x = 0
spriteInstance.y = 0
spriteInstance:prepare(“myAnimation1”)
spriteInstance:play()[/lua]
In other sprites I see even more significant shifts.
I guess uma.lua has been made with Zwoptex, but I get similar incosistencies with TexturePacker spritesheets too. Also, my first thought was that the trimming feature is responsible for this, but I see the inconsistency happening with frames that are not trimmed too. I don’t see anything wrong when using images on their own png file.
Does anybody else face the same problem? Plz try the code with uma.lua or other spritesheets you have available and leave some feedback, so we can find out if it is a Corona bug or not.
Thanks! [import]uid: 7356 topic_id: 3130 reply_id: 303130[/import]