Hello Guest

Author Topic: Controlling how TiledSprite tiles  (Read 4314 times)

mheydlauf

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Controlling how TiledSprite tiles
« on: June 16, 2014, 04:59:32 am »
Hello,

I'm wondering if it's possible to control how a TileSprite tiles.  Specifically I'm interested in:

1. Only tile in X, do not tile in Y
2. HFlip upon tiling instead of repeat (i.e. if I have a sprite that looks like this "-->" when I tile I get this "-->-->" when I'd like to get this "--><--").

Either of those doable with TileSprite?

Many thanks,
Mike.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Controlling how TiledSprite tiles
« Reply #1 on: June 16, 2014, 01:24:44 pm »
1. The tiledsprite dimensions determines how it tiles. If you set Y dimension to exactly the size of the sprite and dont change it, it wont tile in Y.
2. No