Image size
![grandeivid](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi,
I started to use Gamesalad and I have a question about the size of the images that I have to use.
I want to do a game for IPhone. The game has to have a resolution of 640x1920. Playing in landscape and having the size of 2 screens in horizontal position. I have these settings:
- In the Attributes of the Game -> Display Size -> Width: 960 Height: 640
- In the Size of the Scene -> Width: 1920 Height: 640
Then I import 2 images. Each image is 640*960 and I put them in the scene one besides the other. But when I go to the simulator I can only see half of the first image. If I scroll I can view it completely. But this is my background, so I want to see the full first picture without scrolling. Then, if I scroll right the second image has to appear on the screen.
Any help will be aprreciated,
Thanks,
David
I started to use Gamesalad and I have a question about the size of the images that I have to use.
I want to do a game for IPhone. The game has to have a resolution of 640x1920. Playing in landscape and having the size of 2 screens in horizontal position. I have these settings:
- In the Attributes of the Game -> Display Size -> Width: 960 Height: 640
- In the Size of the Scene -> Width: 1920 Height: 640
Then I import 2 images. Each image is 640*960 and I put them in the scene one besides the other. But when I go to the simulator I can only see half of the first image. If I scroll I can view it completely. But this is my background, so I want to see the full first picture without scrolling. Then, if I scroll right the second image has to appear on the screen.
Any help will be aprreciated,
Thanks,
David
Answers
Typically, the camera size in your instance will be 960 width, 640 height
Sydney Swans 2014!!
Hi @grandeivid, as @brendanzh928 says; also you say "I want to do a game for IPhone. The game has to have a resolution of 640x1920" – the highest resolution game-screen for the iPhone is for retina display so the resolution is 640 x 960 and all your images need to be double the size of the size you see them on screen.
If you mean your background needs to 640 x 1920 (showing as 320 x 960 on-screen) then that's OK; for non-RI the maximum size for any image for the iPhone (and the iPad) is 1024 x 1024 pixels and for RI checked, it's 2048 x 2048 max.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Thanks for the tip @brendanzh926. I will check out the camera size and let you know.
@gyroscope if I understood well, the background image should be 1024x1920 because it has to be double the size that I want to show?
Thanks again,
David
@grandeivid
Hi again David; yes, with the understanding that your images outside of GSC need to be double the size you want to see on screen, if Resolution Independence is ticked (which I guess will be every time nowadays). So yes again: always check RI and double your image sizes, and make sure these doubled sizes are exactly divisible by 4.
So to your prob: you've two images, 640 x 960. I guess this is your doubled size so that the image is seen as 320 x 460 size on-screen? In that case, if the two images side by side are parts of the same background image, you can bring it in as one, i.e 1280 x 960. Set your scene size to be this size, add a control camera behaviour to your player actor, adjust the camera in the Scene Edit window. So when your player moves, the background will scroll as you want (if I'm understanding you correctly what you're after).
To say again, for your info: without RI checked, the maximum image size you can use in your scenes is 1024 x 1024. With RI checked (which is advisable to do always now anyway) your maximum size is double that: 2048 x 2048, with the understanding that the image will still show as 1024 x 1024 on-screen, but with double the visual resolution on iPhone 4 (or iPad3).
Hope I've explained it well enough and not confused you more...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps