Fit For iPhone/iPod not iPhone 4?

Hay Everyone!!

My name is Kurt Bringsjord, and I am new to the whole Corona thing, and I am working on a whole papi Jump/doodle jump type of app. I have a serious pre beta version working ok on the emulator, but if I change the view to iPhone 4 it makes it not work correctly. I think it has something to do with the fact that I am using this

–Setting Background Image and making it Scroll up

local paper = display.newImage(“paper.png”)
paper:setReferencePoint(display.CenterLeftReferencePoint)
paper.x = 0
paper.y = 0

local paper2 = display.newImage(“paper.png”)
paper2:setReferencePoint(display.CenterLeftReferencePoint)
paper2.x = 0
paper2.y = 480

local tPrevious = system.getTimer()
local function move(event)
local tDelta = event.time - tPrevious
tPrevious = event.time

local yOffset = ( 0.15 * tDelta )

paper.y = paper.y - yOffset
paper2.y = paper2.y - yOffset

if (paper.y + paper.contentHeight-240) < 0 then
paper:translate( 0, 480 * 2)
end
if (paper2.y + paper2.contentHeight-240) < 0 then
paper2:translate(0, 480 * 2)
end
end
Runtime:addEventListener( “enterFrame”, move )

Is there something that I have to change to make it work on iPhone 4?

Any help is greatly appreciated!!

[import]uid: 86879 topic_id: 14410 reply_id: 314410[/import]

Hay Andreas!!

Thanks for your help!!

What happens when I switch to iPhone 4 is, a visual issue, where it is displayed on half the screen and some other weird things haha.

My build.settings are

settings = {
orientation =
{
default = “portrait”,
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
UIApplicationExitsOnSuspend = true,
UIPrerenderedIcon = true
},
},
}

and my config.lua is:

application =
{
content =
{
width = 320,
height = 480,
scale = “zoomEven”
}
}
Side question, if it was an error message where would I see that message come up?

[import]uid: 86879 topic_id: 14410 reply_id: 53382[/import]

Hey Kurt,

We were all new once, welcome!

When you say “not work correctly” in regards to the iPhone 4, what exactly happens?

Does the app crash?
Or does it simply not display correctly?

If it’s the first case, please post the error message so I can have a look for you.

If it’s the second case, could you please reply with your “config.lua” and “build.settings” contents? These files can make or break apps in regards to switching to other devices.

I apologize that I’m answering your question with even more questions, but I’m here to help and the more information I have the more appropriate my suggestions can be.

Regards,

Andreas Ricci
NuPlay Entertainment
Founder & Lead Developer [import]uid: 7366 topic_id: 14410 reply_id: 53323[/import]

Kurt, not sure if this was posted before or after my last email - I think in it I said this but if not;

To see errors open your CoronaSDK folder in applications and launch “Corona Terminal”. This will open the simulator as well as a terminal window. The terminal window will print errors.

Peach :slight_smile:

PS - I do see you’ve emailed me again, will try to get to it tonight, time permitting. [import]uid: 52491 topic_id: 14410 reply_id: 53518[/import]