Hi,
when I move a sprite with a transition then there appears an artifact.
So if I move a sprite to the left side then on the right side of the sprite there sometimes appears on horizontal line of the next frame.
Here is a code to show you the problem:
local sprite = require("sprite")
display.setStatusBar( display.HiddenStatusBar )
local background = display.newRect(0,0,display.contentWidth,display.contentHeight)
background:setFillColor(255,255,255,255)
local spriteSheet = sprite.newSpriteSheet("sprite.png",60,60)
local spriteSet = sprite.newSpriteSet(spriteSheet,1,2)
sprite.add(spriteSet,"test",1,2,2000,1)
local object = sprite.newSprite(spriteSet)
object:prepare("test")
object:play()
object.x = 200
object.y = 200
transition.to(object,{x=50,time=1000})
And here is the sprite.png (this one is good because you see the artefact very good):
http://imageshack.us/photo/my-images/713/spriteh.png/
It would be very nice if someone knows how to get rid of this artefact.
Thanks,
Yeket [import]uid: 13389 topic_id: 13007 reply_id: 313007[/import]