Load image from URL does not listen to UID

0 favourites
  • 7 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Problem Description

    Load image from URL does not listen to UID and changes every instance of that sprite.

    Attach a Capx

    Description of Capx

    The capx shows the problem 100%.

    Steps to Reproduce Bug

    • Create sprite
    • Load image from url
    • All sprites created change to that URL

    Observed Result

    I have no idea, can somebody give a work around?

    Expected Result

    Only the created instance loads the image from URL not all.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    Beta build R198

  • That is expected behavior from what I can tell.

    Seeing as you change the sprite, all of its instances would change to that new sprite.

    You would simply need another unique/cloned sprite for the second image. ie sprite2

  • That is expected behavior from what I can tell.

    Seeing as you change the sprite, all of its instances would change to that new sprite.

    You would simply need another unique/cloned sprite for the second image. ie sprite2

    The only option C2 gives in runtime is "Create object" sadly i can't clone another sprite in runtime as sprite2.

    And i want the player to load as many images as they want so i can't add sprites in edittime to use later.

  • Your right.

    Hmm, the option says it wants to replace the current displaying animation frame.

    Have you tried adding a blanc frame, show that animation frame, then replace ?

  • Sprites share the same image across instances, so if you change one frame all other instances will change too.

    You'll need to use another plugin to allow each instance to have a unique image. The paster plugin can do this, and I think tiledbg can as well.

    There may be others. Here's where to go to find them:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks guys, paster plugin worked great. Still if it's possible to fix this issue it would be great.

  • Closing as not a bug (instances share images to save memory).

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