How do I create a new instance of an object and change its sprite without affecting the others?

0 favourites
  • 3 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • i'm trying to dynamically create new objects through a generic one and load the images from url, but what ends up happening is that everything that used that generic object end up displaying the same sprite

    i've had a similar issue before where i only needed to change the physics collision of one specific instance of an object but all the other instances get affected, and i later found out that apparently what i wanted to do was not possible in construct

    is the sprite issue the same? or there's a way to do it?

    thanks

  • Use 'on created' condition to pick the one that was just created then apply actions and see if it works.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • An alternative way to handle this is with the drawing canvas object to take a snapshot of the previous sprite texture. The drawing canvas can keep the name or index of the sprite in an instance variable to assist in picking.

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