Hi guys,
I wanna hear your opinion about this. Is it safe to use it?
from like this:
[lua]
fPic = display.newImageRect(“pic.png”,150 , 160 )
[/lua]
this one is fixed based no matter what device you build on.
to this:
[lua]
Pic = display.newImageRect(“pic.png”,display.viewableContentWidth * .073 ,display.viewableContentWidth * .13)
[/lua]
this one changes its width and height based on the device you are building.
I’m personally using this because its more like dynamic, but I don’t know if it has any drawbacks if my app is installed on devices. (I can only build on android, I don’t have a developer account on Apple so I can’t test how it looks)
And I used this dynamic approach on the x and y location of an objects too.
Is there any pro and cons using this approach? does it affect the dynamic image selection?
Please enlighten me
Thanks in advance,
Jam