2D Toolkit Forum

2D Toolkit => Support => Topic started by: tomph on February 21, 2014, 10:29:04 am

Title: Rotated tiles within Tiled Sprite
Post by: tomph on February 21, 2014, 10:29:04 am
Hey guys,

Sorry if this question is a bit dumb - I'm fairly new to Unity/2dToolkit.  I'm trying to achieve what I thought would be a pretty simple task.

I have a square Tiled Sprite with a tiling texture inside.  I would like to rotate the textures (not the sprite), so that my textures tile diagonally and my sprite stays non-rotated.

Is this possible in 2dToolkit.

Thanks for any help :)
Title: Re: Rotated tiles within Tiled Sprite
Post by: unikronsoftware on February 21, 2014, 10:30:39 am
You can't do that. Why not just rotate the sprite? If you need to maintain hierarchy you can simply create a parent empty game object that isn't rotated.
Title: Re: Rotated tiles within Tiled Sprite
Post by: tomph on February 21, 2014, 10:39:26 am
Thank you for you quick response and clarifying that. 

I don't want to rotate the sprite because I want to maintain a flat sprite, with diagonal tiling.

I have this

[- - - - - - - -]

and I want this

[\ \ \ \ \ \ \ \]

Am I missing something?
Title: Re: Rotated tiles within Tiled Sprite
Post by: unikronsoftware on February 21, 2014, 10:40:54 am
Oh I see. No  you can't do that as it will add additional ploys. Much easier and efficient to create a diagonal tiling texture.
Title: Re: Rotated tiles within Tiled Sprite
Post by: tomph on February 21, 2014, 10:42:40 am
Yeah, I'll pass it over to the designer ;)

Thanks for your help