using iphoneDeviceScale()

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
goncalo
Posts: 6
Joined: Tue May 31, 2011 11:53 am

using iphoneDeviceScale()

Post by goncalo » Mon Jul 25, 2011 3:53 pm

Hello,

i’m having some problems with resizing images, just because i want to use 2 kind of resolutions, one to use in iPhone, and the other with retina display.

I have one mainstack "flyPig" with a card "game_on" (320x460px)
and a substack "FlyPig_high" with a card "game_on_high" (640x920px)

i’m using this

Code: Select all

on preopenStack
   if iphoneDeviceScale() = 2 then
      go to card "game_on_high" of stack "FlyPig_high"
   end if
end preopenStack
but nothing happens, when i open the application in the Simulator the card that appears is the "game_on".

then a try put the card "game_on_high" (640x920px) into mainstack "flyPig" resizing the mainstack

Code: Select all

on preopenStack
   if iphoneDeviceScale() = 2 then
      go to card "game_on_high"
   end if
end preopenStack
but the image resized to... hummm?

can anyone help me?
Thanks
Gonçalo

MacOSX 10.6
iMac 27" Intel Core 2 Duo 3,06 GHz

Post Reply