Hello Guest

Author Topic: 2D Toolkit 2.1 beta 3  (Read 51267 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #15 on: July 22, 2013, 09:50:52 pm »
Is it because you have an override? What are your native and preview resolutions?

chall3ng3r

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #16 on: July 23, 2013, 12:17:51 am »
Yes,

at the end of tutorial full download of project would be great!

Thanks,

// chall3ng3r //

tejón

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #17 on: July 23, 2013, 10:37:10 am »
No, I'm just an idiot. ;D I was viewing the wrong axis pair (XZ instead of XY) and the clipping plane depth lines on Z happened to match an approximate 16x9 ratio against width lines on X.

CliffCawley

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #18 on: July 23, 2013, 12:15:45 pm »
I just upgraded one of my games to use the latest 2d Toolkit.

I was using:

         int cameraPosX= (int)_gameCamera2d.ScaledResolution.x;
         int cameraPosY= (int)_gameCamera2d.ScaledResolution.y;

And now get:

error CS1061: Type `tk2dCamera' does not contain a definition for `ScaledResolution' and no extension method `ScaledResolution' of type `tk2dCamera' could be found (are you missing a using directive or an assembly reference?)

What's the equivalent in this release? I checked the upgrade guide but didn't see it mentioned.

Thanks,
Cliff

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #19 on: July 23, 2013, 12:41:52 pm »
I missed that in scaled resolution :( I'll add that back in the next release marked as obsolete. Wasn't intentionally removed.

ScreenExtents & NativeScreenExtents are the ones you want now - theyre rects, so use width & height

CliffCawley

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #20 on: July 23, 2013, 12:43:47 pm »
I missed that in scaled resolution :( I'll add that back in the next release marked as obsolete. Wasn't intentionally removed.

ScreenExtents & NativeScreenExtents are the ones you want now - theyre rects, so use width & height

Cheers :)

TekuStudios

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Teku Studios
Re: 2D Toolkit 2.1 beta 3
« Reply #21 on: July 23, 2013, 12:52:00 pm »
2DT 2.1 final will be compatible with Unity 4.2, right?
We are an Indie videogame developer located in Teruel, Spain. A small 6-people team which is currently working on the upcoming 'Candle'.

CliffCawley

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #22 on: July 23, 2013, 12:53:16 pm »
I'm running it with 4.2 right now and it seems to be fine :)

TekuStudios

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Teku Studios
Re: 2D Toolkit 2.1 beta 3
« Reply #23 on: July 23, 2013, 01:05:04 pm »
Nice, thanks for the quick answer :)
We are an Indie videogame developer located in Teruel, Spain. A small 6-people team which is currently working on the upcoming 'Candle'.

korn3l

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #24 on: July 24, 2013, 10:59:04 am »
Are the resolution overrides implemented different now ?
It doesn't work when I set resolution to match any height or width (-1).

Quote
From documentation:
int    width
    Screen width to match. Set to -1 to match any width.
int    height
    Screen height to match. Set to -1 to match any height.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #25 on: July 24, 2013, 11:01:26 am »
@korn3l - that is incorrect in the docs, I've fixed it for the next release. The one you want is above it - matchBy
set that to MatchByType.Wildcard to detect any resolution.

korn3l

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #26 on: July 24, 2013, 11:25:15 am »
What happens if I want to match only by width or only by height?

Is this feature dropped ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #27 on: July 24, 2013, 11:28:01 am »
Didn't see any use for it which couldn't be handled by wildcard + "Fit Height" / "Fit Width".
What do you use it for? I can put it back in easy enough.

korn3l

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #28 on: July 24, 2013, 11:39:14 am »
I guess you are right. For my needs it works ok with wildcard and fit height.

I'm thinking that feature could be used for some specific overrides e.g. -1 x 480 "Fit Height" and 640 x -1 "Fit Visible"
You can't do that anymore I guess.
But I don't know if someone uses that anyway, so it works fine for now. Thanks for the reply.

CliffCawley

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: 2D Toolkit 2.1 beta 3
« Reply #29 on: July 24, 2013, 12:58:31 pm »
Really enjoying this beta release. I haven't played with the UI or the TileMap till now and it blew me away. I didn't realise what you'd done but it looks great!

My only final request is when adding attachment points, we can choose position and rotation. Can we also choose a z offset? I.e. On some frames I want my attached object to be behind the sprite, while on others I'd like it in front. (I.e. simple layering).

Perhaps just a checkbox for 'Set behind' as I noticed that the existing z pos is -0.05, so just a toggle to set it to 0.05 ?
« Last Edit: July 24, 2013, 01:00:58 pm by CliffCawley »