Hello Guest

Author Topic: Clipped Sprite Rotation While Preserving Original Rotation  (Read 3122 times)

inkoman

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Clipped Sprite Rotation While Preserving Original Rotation
« on: October 04, 2015, 11:30:17 pm »
Hi,

I'm trying to figure out if there's a way to rotate a clipped sprite while maintaining the original texture's rotation. For 90-180-270 degrees, it works just fine, but I would like to make it so rotating the clipped sprite will "reveal" a sloped/slanted rectangle area of the image, but not rotate the actual image with it. I hope that makes sense... is there a way to do this, or is there some other method that I may have overlooked that achieves the same result?

Thanks!
« Last Edit: October 04, 2015, 11:32:50 pm by inkoman »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Clipped Sprite Rotation While Preserving Original Rotation
« Reply #1 on: October 05, 2015, 11:09:49 am »
You can't do that with a clipped sprite. Look at the UI Mask demo, you can do that quite easily using the ui mask.