How do I position sprites over family members?

From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • I’m trying to position sprites over members of a family when I overlap them.

    I’m not at my pc but basically my code is:

    If overlapping NPC And Press space

    position Sprites to NPC.X, NPC.Y

    NPC being my Family. I’ve put several NPC family members on the screen but it doesn’t matter which one I’m overlapping and interacting with, the Sprites always position over the first member in the family. I’m probably overlooking something really simple but I can’t figure it out.

  • Please post a screenshot of the actual event used

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I figured it out, I was making it way more complicated than it needed to be. Construct is incredibly intelligent tbh, I was trying to position a sprite over a family member and thought I needed to define / pick out which member.

    Turns out as long as the family member meets the conditions, C3 is smart enough to position the sprite over the correct family member by just:

    Set position to <family>

    Spent so long on this, it's frustrating haha. But it works brilliantly. So simple!

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