Loading Image Scale Problem

gstevenshome

  • Posts: 29
Hi,

I loaded an image from my server into a scene and attached it to the screen at x50 y50.  I used the "load image from URL" block to load it, and then "attach instance of image to screen" block to attach it.  It worked fine,  but when testing on a few different Android devices, it seems to be scaling it differently on different devices.  On my nexus 7, it scaled it as if I had imported it with 2X, but on a different Android it was half the size on the screen as if I had imported it as 4X.

Any ideas why that happened as I can't see any options to set what scale it imports an image with on the "load image from URL" block?

Thanks in advance!

stefan

  • *
  • Posts: 2263
You  can upload different scaled versions of your image to your server. Before loading the url, check the current scale (there is a block for that), and load the image what will fit best.

Good luck!

gstevenshome

  • Posts: 29
Ah ok that sounds like a plan!  Can you tell me where the block is that tells you current scale?  I can't find it.

Thanks

stefan

  • *
  • Posts: 2263
Just use the search bar =p
On my phone atm. Sorry

gstevenshome

  • Posts: 29
Ah Thanks! Found it.