2D Toolkit Forum

2D Toolkit => Support => Topic started by: mheydlauf on June 16, 2014, 04:59:32 am

Title: Controlling how TiledSprite tiles
Post by: mheydlauf 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.
Title: Re: Controlling how TiledSprite tiles
Post by: unikronsoftware 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