Getting some ghosting of child sprite when the parent is using Physics behavior.

0 favourites
  • 7 posts
From the Asset Store
Add emotion, innocence, joy and cuteness to your video game with these 15 songs and 9 SFX
  • So I have a main sprite (parent) that uses the physics behavior and the stepping is set to framerate independent. The gravity is set to 15 and it flaps around like a bird. When I add a child sprite to the parent, the child has ghosting (like a small trail) as the parent flaps around. It looks like the child is being set to the parent position too late or before the parent actually moves to it's new position.

  • How do you attach that child sprite to the parent? With hierarchy, physics joint, Pin?

  • I make the 2nd sprite a child of the 1st sprite, using Add Child. And then position the 2nd sprite to an image point on the 1st sprite. That all works fine. But when the 1st sprite moves around with Physics, the 2nd sprite has ghosting/is blurry. I'm guessing this might be a known issue that needs to be fixed. It's not game breaking but is definitely detracting from gameplay. I made sure it's not a collision thing by disabling the collision on the 2nd sprite, and the ghosting behavior is the same.

  • I make the 2nd sprite a child of the 1st sprite, using Add Child. And then position the 2nd sprite to an image point on the 1st sprite.

    Do you mean you position the 2nd sprite to the 1st sprite on every tick? This can explain the ghosting. If you check "Transform X" and "Transform Y" when adding a child, it will be attached to the parent.

    If this doesn't help, can you post your project file?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No I just position it then do Add Child. There's no repositioning on every tick.

  • Can you share your project file?

  • So actually the child sprite was black (a key). But when another sprite which has no black pixels in it was a child, it wasn't blurry or ghosting. Very strange indeed! At this point I'm willing to just ignore it.

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