Multiple Pins on Same sprite, Pin relative distance moves

0 favourites
  • 3 posts
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • Hello,

    I'm trying to setup health bars near the feet of some sprites and I need some help.

    This seemed to be working when the healthbar was a simple rectangle, but when I decided to improve the health bar to give it a background (another sprite on the bottom) then I realized that both pinned objects slowly move away or close in to the origin sprite. That means that it does not keep the same distance as the sprite moves around.

    I've tried multiple behavious (pin to image point, distance, etc) and they all seem to do the same.

    I've set both healthbar and background imageview points to the center (althought they have diferent sizes).

    Here are some screenshots to ilustrate:

    This is my logic:

    Any help would be apreciated!

    Tagged:

  • These two objects (healthbar and its background) have different Z-elevation, that's why they are drifting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That worked, didn't realize Z elevation was not the same as Z-order.

    Thank you for the clarification!

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