Load Image From Url wrong size

0 favourites
  • 6 posts
From the Asset Store
220 Food Sprites in 16x16 pixel size. Perfect for items for a retro style game.
  • This is my code:

    + function

    ++ For from site * 5 to site * 5 + 4

    --> Place everything

    --> Image set animation frame to loopindex - site * 5

    --> image Load Image From Url keep current size

    The Image got 5 frames all have the same size and the same sprite.

    What happens:

    • The First time everything works fine *gg*
    • The second time all images out of the first one have random sizes
    • The third time and so on same ...

    I never do anything with the with, so I really think its something what LoadImage does.

    Someone got a clue ?

  • That's a little too vague to do anything with.

    It would probably be best to make an example capx and load it up.

  • Not possible cause LoadImageFromUrl doesn�t work crossside.

    I could do it but it won�t work.

    If you have any idea how I could make an working example.capx, I will do it.

  • Didn't understand your 5+4 math thingie, but I remember having a similar issue

    Maybe there's a bug somewhere with "keep current size" I dunno

    Anyway, how about On image url loaded > set scale to 1, would that work for you? (it did for me)

  • lemo first at all thanks for your reply

    "Didn't understand your 5+4 math thingie, but I remember having a similar issue" - Do not care about this, this is just to find the right images.

    "Anyway, how about On image url loaded > set scale to 1, would that work for you?" - I tried it an laughed, first site Ok like every time but the sites after it they are even bigger and on the false position now :D This is really the first time I don?t even have a clue what c2 does.

    Edit: OMG, it works now :O Set Scale 1 was also doing some random sh*t so I tried to set the size after the loading of the image again (yes totally ugly) but this works. Load Image from Url ist totally buggy.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okay good to know it sorta work =)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)