xScale and yScale don't work?

Hi,

I never tried x or yscale before but I can’t get it to work - or doesn’t it work on big images that covers the whole iPad screen?

local bg = display.newImage("myBackground.png",0,0)  
bg.xScale = 1.5;  
bg.yScale = 1.5;  

Regards, Joakim

[import]uid: 81188 topic_id: 21926 reply_id: 321926[/import]

did you try scaling it down?

1.5 = 150%

.5 = 50%

see what results you get by using different values?

c
[import]uid: 24 topic_id: 21926 reply_id: 87191[/import]

Hmmm, it seems to be working right out of the box now! Tried several of hours yesterday…could maybe be a reason that I’m almost been marathon coding for 3 months now… (sleeping code, eating code, dreaming of lua) :slight_smile:

Thanks, Joakim
[import]uid: 81188 topic_id: 21926 reply_id: 87231[/import]