Hello Guest

Author Topic: Rotated tiles within Tiled Sprite  (Read 3797 times)

tomph

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Rotated tiles within Tiled Sprite
« 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 :)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Rotated tiles within Tiled Sprite
« Reply #1 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.

tomph

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Rotated tiles within Tiled Sprite
« Reply #2 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Rotated tiles within Tiled Sprite
« Reply #3 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.

tomph

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Rotated tiles within Tiled Sprite
« Reply #4 on: February 21, 2014, 10:42:40 am »
Yeah, I'll pass it over to the designer ;)

Thanks for your help