Page 1 of 1

using iphoneDeviceScale()

Posted: Mon Jul 25, 2011 3:53 pm
by goncalo
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