0 Favourites

Best way to attach a weapon and have it mirror right?

  • Every time I attach a sword or gun to my platform character I run in to the same issue. I try to have the character move in the other direction by using the "mirror=true" function but the gun/sword/wep never mirrors correctly. I'm not in front of my computer with C2 on it or I'd attach an example but it's really boggling my brain. I want to be able to swing a sword facing the right and then turn left and swing it exactly the same just mirrored.

    Hopefully someone knows what I'm talking about and has a quick fix :/

    Thank you.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I should also mention that I'm using the Pin behavior on the weapon, pinning it to the character at the start of layout angle and direction I think the option is called and then I also have it mirror.

    The issue seems to be that it mirrors but isn't attached at the right spot when it does. It scoots it back or something.

  • It won't mirror properly if you use pin. Instead, on the sprite you're pinning to, create another image point on the sprite called "weapon", and then every tick set the position of your weapon sprite to Player.ImagePointX("Weapon") & Player.ImagePointY("Weapon"). Then, once you mirror the both sprites, they should mirror properly.

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