Size of Images

Hi, I have another doubt.

To I make a background image for my scene (level 1), I need make just a image, for example this imagem of Sonioc (http://info.sonicretro.org/images/2/26/Ghz1.PNG). it's a big image.. 10.240×1.280 pixels... I need make like this?

Comments

  • DuesDues Member Posts: 1,159
    Can't really understand what you mean, are you wondering about what size you should make your image?
  • doug_smuppetdoug_smuppet Member Posts: 99
    yes, if there is a minimum or maximum size.
  • doug_smuppetdoug_smuppet Member Posts: 99
    UP L-)
  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2013
    yes, if there is a minimum or maximum size.
    Maximum image size is 2048 x 2048 . . . . so you will need to place lots of images side by side in GameSalad to make one big image.

    In your example ('Sonioc’?) the game layout is not one big image . . . it is just one tree + one 'ground' block + 1 piece of flat grass + 1 piece of sloping grass . . . . etc etc

    Like Lego ! A few small images arranged to make a big layout - rather than one big image.

  • doug_smuppetdoug_smuppet Member Posts: 99
    hum... got it, I guess...

    so... if I need an image of 5000x900px. I need to do at least 3 images, or I can make 5 images of 1000x900px and placing side by side, that's it?
  • SocksSocks London, UK.Member Posts: 12,822
    hum... got it, I guess...

    so... if I need an image of 5000x900px. I need to do at least 3 images, or I can make 5 images of 1000x900px and placing side by side, that's it?
    You can do it whichever way you like once no one single image is larger than 2048.

    But . . . .

    iOS holds image data in certain sized 'chunks' of memory, like this . . .

    16 - 32 - 64 - 128 - 256 - 512- 1024 . . . etc etc

    . . . it will use up the smallest amount of memory it can fit your image into.

    So if you give it / It will use:

    124 / 128
    125 / 128
    126 / 128
    127 / 128
    128 / 128
    129 / 256

    . . . etc

    So if you give it / It will use:

    508 / 512
    509 / 512
    510 / 512
    511 / 512
    512 / 512
    513 / 1024
    514 / 1024


    . . . . . .


    So if you want to save memory and keep performance high try and keep our images within these memory sizes:
  • doug_smuppetdoug_smuppet Member Posts: 99
    so... how much lower is the image .. is better to load?

    this is it?
  • CORE GameCORE Game Member, PRO Posts: 280
    You better make tiles, so it will be 1 actor for the platform but you can place it any where and you can stretch it as much as you want.

    Best practice for me is draw the whole level on a big board to see how it will look like and then think of the tiles and how it should be implemented.

  • doug_smuppetdoug_smuppet Member Posts: 99
    because i want make a game like Sonic, with 10 levels, and i'll make a level different from one another, but with the same size, so I need create a Scene for which level, that's right?

    My question is if I can make each image for each level in size 5000x1000 px .. for ipad
  • CORE GameCORE Game Member, PRO Posts: 280
    You need 1 scene for each level and then make actor for the platform (where the player can walk) this one it should be small for example (32x32) and you should change the graphic from stretch to tile, then you can make it bigger or smaller the way you want.
    Check the following link at your own risk :)

    --This one it will show you what I mean by tiles images:
    http://www.photonstorm.com/wp-content/uploads/2011/09/Image-Tileset.png

    if you will go with 1 big image it will not be as flexible as tiles, with tiles you can make as many levels as you want :)

  • doug_smuppetdoug_smuppet Member Posts: 99
    Thanks, I think I understand
Sign In or Register to comment.