Help with mirroring

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Sync animations, animation frames, mirror state, sounds and anything else using these methods.
  • Hi, there. I'm creating a simple game for a course I'm taking and I've come across a bit of a snag.

    I'm having a problem with mirroring directions. When my sprite's health variable reaches a certain number it "evolves" (i.e. changes animation). The animation change works fine but the problem is the sprite stops mirroring directions as it moves. Upon collision with another object, the mirroring works just fine again. Any insights?

    Thanks!

  • The issue is caused by the size change. A mirror sprite has a negative width. That is how the system handles mirroring. Since you are setting the width to a positive value, you are losing the mirrored appearance. Instead of setting the size, could you set the scale? That might be the easiest fix for you. If not, you will have to check mirrored state and reset it right after changing the size.

  • laurenea123 When you create a topic, make sure you change the suggested title to reflect what your topic is actually about. I've edited your topic to have a slightly more relevant title.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay - thanks for the help. Scaling the animation did the trick!

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