Hello Guest

Author Topic: UV animation and tiling sprite.  (Read 5813 times)

mamamia

  • Guest
UV animation and tiling sprite.
« on: November 16, 2012, 10:33:14 pm »
Hi,

I have a sprite I want to tile across one axis. It must simulate a tripped line, the texture is 16x8 and have 2 lines drawn on it that wen tiled creates the stripped line effect. On the other hand I need to animate it using uv to simulate the movement of the stripes. How can I do this? First of all it seems the minimum size for a sprite atlas is 64x64 so my texture won't cover it all in the axis I need to tile and so, I won't be able to do proper animation. On the other hand, is there an easy way to change sprite uv?.

Thanks a lot in advance.
« Last Edit: November 16, 2012, 10:34:59 pm by mamamia »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: UV animation and tiling sprite.
« Reply #1 on: November 16, 2012, 11:00:41 pm »
Easiest option is don't put that texture in an atlas, then you can do what you want with it. Also check out this sample:
http://unikronsoftware.com/2dtoolkit/forum/index.php?action=dlattach;topic=398.0;attach=258