Hi Ansca,
please welcome and give it big round of applause… another bug couple…
When you want to set the xScale or yScale property directly to a value of zero, nothing happens. Whe you want to set them via transition.to, the image doesn’t disapear totally, the scale factors finish around 0.12
[lua]myImage = display.newImage(“Icon.png”,50,50)
myImage.xScale = 0[/lua]
[lua]function finish(target)
print (“xScale: “…target.xScale…”:”…target.yScale)
end
local myImage = display.newImage(“Icon.png”, 50, 50)
transition.to(myImage, {xScale = 0, yScale=0.0, onComplete=finish})[/lua]
The usage of object:scale(xfactor, yfactor) works surprisingly correct.
Michael Hartlef
[import]uid: 5712 topic_id: 1097 reply_id: 301097[/import]