How do I reposition a single instance of a sprite.

0 favourites
  • 3 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • Hi there,

    I'm quite new here, but having loads of fun! I'm trying to reposition a specific instance of a sprite and when I use the reposition event it moves all instance of that sprite to the coordinates; I don't want to destroy them when I move them.. so each instance will move off the screen, and may come back again.

    I tried searching all over for this but I couldn't find it.

    Thank you,

    James

  • Construct2 instances need to be "picked" in order for Construct2 to act on specific ones.

    You pick an instance in the conditions portion of an event. Any instance referenced in the condition is therefore picked and the actions will only affect it... search for picking instances, there are several good tutorials out there.

    You will have to find a way to pick the specific instances your after and then condition it.

    Ie. on collision, is-overlapping, distance from a point, instance variables set to certain things, etc. (options are near endless).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you could do it like this

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