bottom and other objects can't be placed higher, why?

So, my Englisch is not so good, but I hope you can help me. 

We should make an own mobilgame. I’m finished so far, but there is one problem. I have desingt the game on ipad air screen, so if I changed to iphone 6, i have notice that the bottom is to much below and you can’t see elements from the foreground. But if I put the bottom up, and after that also the player and trees, the bottom goes down again. ??? 

What can I do to put the bottom in the right position? I only wan to put the hole landscpae  up, so you see fewer of the trees and more of the gras in foreground.

So looks my game version, where I have noticed, that the bottom is to much below, I can’t put the buttom higher.

and here are some parts of my code:

And I don’t really understand how it works with putting in your own app icon for ios and android. I have read the different forums and post but I don’t understand it really well because of my English.

What is your native language?

Next, games that you expect to run on both phones and tablets require some planning. In your game you don’t have as much space top-to-bottom on a phone as you do on a tablet. Now it seems to me that the area below the ground (that’s getting cut off on the iPhone) isn’t important to the scene. Also, the top of the trees can afford to be cut off.  You might want to consider centering your background.

Showing your code:  Taking screen shots of your editor is the worst possible way to show us your code. What you should do is select just the relevant part of your code (we generally do not need to see it all!) using your mouse and do a CTRL-C to copy the text, then here in the forum post editor, click on the <> button in the edit bar, paste your code into the box that shows up (CTRL-V) and close the forum. Your code will show up here and we can copy and paste it when answering questions.

Thanks for the fast answer. 

I’m German and Polish, but we use and learn the programm in German.

I have planed my game before, I have make a psd file which is big as an iPad an make also a frame which is so big as a  iphone 6, so while I have made my grafics, I have seen how it will / should look in the game for both objects.

The problem is somewhere in the importing or code , …in game-lua oder tiles.lua. I can’t remember if it works on the beginning or if there was always the problem. I think it is somting wrnog with the player or mybe the camera?

And how can I center it, I have try different positions for x and y, but nothing worked. If one object gets higher, than an other can’t.

for egsample the bottom is 1024 x 205 big, bottom.x=512, but what is with y? I want that the bottom of the grafik ends with the lower egde of the ipad. But it dosn’t matter which value I try, the buttom doesn’t get higher.

This is my first post, for the next time I will know it - no screenshots :slight_smile:

Because I don’t know where the mistake is and what code you will need, I post first this here (hope it’s correct so '^^:

TILES.LUA function machBoden1(gameGroup, pos\_x, pos\_y) bodenShape = {-512,-65, 512, -65, 512,84, -512,84,} boden = display.newImageRect("grafik/boden.png",1024,205) boden.x, boden.y = pos\_x, pos\_y gameGroup:insert( boden ) physics.addBody( boden, "static", {shape = bodenShape, density = 0, friction = 1000} ) boden.myName = "boden" return boden end GAME.LUA tiles.machBoden1(gameGroup, 512,640) tiles.machBoden1(gameGroup,1536,640) for c = 1, 11 do tiles.machBoden1(gameGroup, 2024 + 1024 \* c, 640, 0) end playerShape = {-40, -160, 50, -160, 30, 155, -10, 155} player = display.newSprite( myImageSheet, sequenceData ) player: setSequence( "walk" ) player:play( ) player.x, player.y = 512, 570 gameGroup:insert(player) physics.addBody( player, "dynamic", {friction = 170, shape = playerShape} ) player.isFixedRotation = true player.isSleepingAlllowed = false

Can you post your config.lua?

application = { content = { width = 768, height = 1024, scale = "zoomeven", fps = 60, --[[imageSuffix = { ["@2x"] = 2, }, --]] }, --[[-- Push notifications notification = { iphone = { types = { "badge", "sound", "alert", "newsstand" } } }, --]] }

By the way, scale above should be “zoomEven” if that’s what you want.

Now can you post the code where you’re creating your background?

Ooo, OK, I haven’t noticed it. 

My background is only the sky, which is the only thing, which is placed correctly

TILES.LUA function machBackground (backgroundGroup, pos\_x, pos\_y) background = display.newImageRect ("grafik/background\_himmel.png", 1024,768) background.x, background.y = pos\_x, pos\_y backgroundGroup: insert (background) return background end GAME.LUA tiles.machBackground(backgroundGroup, 512,384) 

Edit: 

This with zoomEven has nothing change on my problem.

The problem was the camera^^Have solw it. But thanks for your help

What is your native language?

Next, games that you expect to run on both phones and tablets require some planning. In your game you don’t have as much space top-to-bottom on a phone as you do on a tablet. Now it seems to me that the area below the ground (that’s getting cut off on the iPhone) isn’t important to the scene. Also, the top of the trees can afford to be cut off.  You might want to consider centering your background.

Showing your code:  Taking screen shots of your editor is the worst possible way to show us your code. What you should do is select just the relevant part of your code (we generally do not need to see it all!) using your mouse and do a CTRL-C to copy the text, then here in the forum post editor, click on the <> button in the edit bar, paste your code into the box that shows up (CTRL-V) and close the forum. Your code will show up here and we can copy and paste it when answering questions.

Thanks for the fast answer. 

I’m German and Polish, but we use and learn the programm in German.

I have planed my game before, I have make a psd file which is big as an iPad an make also a frame which is so big as a  iphone 6, so while I have made my grafics, I have seen how it will / should look in the game for both objects.

The problem is somewhere in the importing or code , …in game-lua oder tiles.lua. I can’t remember if it works on the beginning or if there was always the problem. I think it is somting wrnog with the player or mybe the camera?

And how can I center it, I have try different positions for x and y, but nothing worked. If one object gets higher, than an other can’t.

for egsample the bottom is 1024 x 205 big, bottom.x=512, but what is with y? I want that the bottom of the grafik ends with the lower egde of the ipad. But it dosn’t matter which value I try, the buttom doesn’t get higher.

This is my first post, for the next time I will know it - no screenshots :slight_smile:

Because I don’t know where the mistake is and what code you will need, I post first this here (hope it’s correct so '^^:

TILES.LUA function machBoden1(gameGroup, pos\_x, pos\_y) bodenShape = {-512,-65, 512, -65, 512,84, -512,84,} boden = display.newImageRect("grafik/boden.png",1024,205) boden.x, boden.y = pos\_x, pos\_y gameGroup:insert( boden ) physics.addBody( boden, "static", {shape = bodenShape, density = 0, friction = 1000} ) boden.myName = "boden" return boden end GAME.LUA tiles.machBoden1(gameGroup, 512,640) tiles.machBoden1(gameGroup,1536,640) for c = 1, 11 do tiles.machBoden1(gameGroup, 2024 + 1024 \* c, 640, 0) end playerShape = {-40, -160, 50, -160, 30, 155, -10, 155} player = display.newSprite( myImageSheet, sequenceData ) player: setSequence( "walk" ) player:play( ) player.x, player.y = 512, 570 gameGroup:insert(player) physics.addBody( player, "dynamic", {friction = 170, shape = playerShape} ) player.isFixedRotation = true player.isSleepingAlllowed = false

Can you post your config.lua?

application = { content = { width = 768, height = 1024, scale = "zoomeven", fps = 60, --[[imageSuffix = { ["@2x"] = 2, }, --]] }, --[[-- Push notifications notification = { iphone = { types = { "badge", "sound", "alert", "newsstand" } } }, --]] }

By the way, scale above should be “zoomEven” if that’s what you want.

Now can you post the code where you’re creating your background?

Ooo, OK, I haven’t noticed it. 

My background is only the sky, which is the only thing, which is placed correctly

TILES.LUA function machBackground (backgroundGroup, pos\_x, pos\_y) background = display.newImageRect ("grafik/background\_himmel.png", 1024,768) background.x, background.y = pos\_x, pos\_y backgroundGroup: insert (background) return background end GAME.LUA tiles.machBackground(backgroundGroup, 512,384) 

Edit: 

This with zoomEven has nothing change on my problem.

The problem was the camera^^Have solw it. But thanks for your help