See pixel size of images in buildbox

Discussion in 'Buildbox General Discussion' started by ricky_dawn, Jan 16, 2016.

  1. ricky_dawn

    ricky_dawn Boxer

    Joined:
    Dec 14, 2015
    Messages:
    34
    Likes Received:
    5
    Hi,

    I've almost finished my game and am currently optimising it as best as I can, however I have scaled down several objects and chars in my game which I know is bad (the scale is 0.64) and they are mostly circles and squares - is there any way of knowing how big these are in pixels now they have been scaled so I can re-create them in the correct size and re-import them into BB?

    Thanks!
     
  2. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    its a matter of calculation the 1 scale is 100% and you make it 64% (0.64) it's mean that you reduced the size of the image by 36% (0.36).

    so let's assume that you have image with a 400 in width and 500 in height (400, 500) if you want to make it in the size appropriate to 0.64 you need to reduce the size by 36% (0.36) in other way (1 - 0.64 = 0.36) and that will make it with equation :

    400 - (400*0.36) = 256 in other way its 400 - 36% = 256
    500 - (500*0.36) = 320 in other way its 500 - 36% = 320

    so now the image size need to be updated to (256, 320)
     
  3. ricky_dawn

    ricky_dawn Boxer

    Joined:
    Dec 14, 2015
    Messages:
    34
    Likes Received:
    5
    Yep works well thanks! Luckily Fireworks has a percentage function so can just change the image to 64% :)

    Once suggestion to BB - I have cloned many objects and have replaced the image with the correct size but now I need to go through them all and change the scale to 1, do cloned objects not all have to be the same size? It would be good to have an option to 'update all' when changing the scale of the primary item of the clones!
     

Share This Page