Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 11pika11

Pages: [1]
1
Hey... just had a little project in corona sdk. they set the @2x and @4x with a "scale factor".
the scale factor is calculated simply by dividing the width of the "current device" by the width of "native resolutions.

Quote
600 / 320 = 1.875   --Kindle Fire & Nook
640 / 320 = 2.0     --iPhone 5
768 / 320 = 2.4    --iPad
800 / 320 = 2.5     --Kindle Fire HD / Nexus7
1200 / 320 = 3.75   --Kindle Fire HD 8.9
1536 / 320 = 4.8   --Retina iPad
(from corona sdk blog)

what they suggest is that if the scale factor is greater than 1.5 you should use @2x and if it is greater than 3 use @4x

so you could do this by using Screen.width in Unity and dividing it by the width of your native resolution (which you set up with tk2d)

hope this helps!

http://docs.unity3d.com/Documentation/ScriptReference/Screen-width.html


2
Releases / Re: 2D Toolkit 2.0 Playmaker actions
« on: August 21, 2013, 01:49:57 am »
I also would like playmaker actions for 2D Toolkit UI.
That would be great!

Pages: [1]