Hello Guest

Author Topic: Any way to offset a sliced sprite?  (Read 4299 times)

Jimadybobalon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Any way to offset a sliced sprite?
« on: July 23, 2013, 12:26:39 pm »
As the title says, is there any way to offset a sliced sprite? I want the functionality of a clipped sprite, but without the position of the image changing. So I basically want the window that I'm displaying to stay perfectly still, but the image that's rendering to be able to move along that image.

Am I missing a setting somewhere?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Any way to offset a sliced sprite?
« Reply #1 on: July 23, 2013, 12:47:34 pm »
Nope, the sliced sprite is meant to be just that - a sliced sprite. If you want to clip it or other things, I suggest looking into how the tk2dUIMask works - that pretty much works with any sprite type / text and is really flexible. You can use it for a lot more than just UI.