Hello Guest

Author Topic: Sprite from texture/ Ipad Background  (Read 5307 times)

Lrateke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Sprite from texture/ Ipad Background
« on: December 05, 2013, 10:44:11 pm »
Hi,
I'm new on 2D toolkit.
I'm making a game exclusive for IPAD that uses a whole drawing as background, and for that I'm using "Sprite from texture".
My doubt is about the "size", Which are the difference among "Pixel per meter" and "Explicit"?
Also, if I use a whole drawing as a static background (Every Scene has a Static background, like old Adventure Games) which would be the best configuration for the "Sprite from texture" and the "2dToolkit Camera"?

Regards.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #1 on: December 06, 2013, 10:24:40 am »
The pixels per meter / explicit thing should match exactly how your tk2dCamera is set up.
Set up your tk2dCamera the way you want. If you don't know what you need then I suggest starting with 100 pixels per meter.

The sprite from texture thing should use the same 100 pixels per meter.

Lrateke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #2 on: December 06, 2013, 10:49:19 am »
Fine,

But what does it mean? Care to explain what is those 100 pixel per meter so I can adjust how I see fit?

Regards.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #3 on: December 06, 2013, 10:55:03 am »
Pixels per meter is exactly what it says on the tin. How many sprite pixels per meter (unity unit). So if you move by 1 unit in unity, how many pixels in your sprite you'd cover. You can pick any convenient value here, 100 pixels per meter works decently with default Unity physics values, but you can choose anything else.

Lrateke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #4 on: December 06, 2013, 12:30:57 pm »
Does it have anything releted with resolution?

I'm focusing my game to be played on an Ipad 3 (retina display), 100 pixels per meter is fine for it?

Thanks so far!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #5 on: December 07, 2013, 03:20:27 pm »
Set up your tk2d native resolution to 2048x1536. 100 pixels per meter will mean that 1 unity unit = 100 pixels on the device as well.

Lrateke

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Sprite from texture/ Ipad Background
« Reply #6 on: December 07, 2013, 03:35:07 pm »
Thank you!