sprite doesn't keep up with other sprite

This forum is currently in read-only mode.
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • I have two problems, one is that my arm sprite will lag behind my person sprite, and that I can't get my physics bullet to stop colliding with itself. Here's the .cap.


  • 1. To make position stop lagging: Swap your include event sheets around (make weapons appear after general). Because your weapons were positioning themselves (on old coordinates) before you set positions of the body in the general sheet.

    2. Don't know what you mean about them colliding itself, but I also don't think you should be using physics on bullets. Just use custom movement behaviour.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • , can you expand on that first thing a bit? I don't quite understand what you mean. I have a similar issue sometimes, but I am sure my workaround is overly tedious and a bad way to do it. How can I stop the lag? Could you perhaps make an example?

  • Okay.

    So basically, you want to have the positions of the things set in order. Basically what was happening in his .cap was that:

    1. The gun is positioned to the body

    2. The body position changed

    So the gun appeared to lag behind, it wasn't keeping up. So its important to realise how the order matters, it should be:

    1. The body position changed

    2. The gun is positioned to the body.

    No lag now!

    Here's a cap that demonstrates this:


    (swap the events in the event sheet around to notice difference)

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