Hello Guest

Author Topic: MultiPlatform Toolkit integration  (Read 20133 times)

atmuc

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #15 on: November 09, 2012, 06:58:23 pm »
1. i need to use different images/atlasses for different platforms.
2. because 2dtk camera adjusts sprite size to make it pixel perfect i also need to change the size of collider. maybe i quit to use 2dtk camera and adjust sizes by myself.

i am looking solutions to use 2dtk with mptk for multiplatform deployments. 2nd problem has workaround. of course there is code solution for everything :-) i need a gui solution for the first problem. :-)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #16 on: November 09, 2012, 07:13:26 pm »
1. This really needs to be a hybrid solution with tk2d and mptk - I do have plans to do basic sprite collection filtering for platforms, but not anywhere near as complex as mptk. I'll email the mptk guys to see if maybe we could work together on a solution. I don't want to lose focus too much with tk2d, and this sounds a lot more like mptk domain.

2. tk2dCamera doesn't touch any sprite sizes, just rescales the camera to fit the sprites. The sprite / collider size won't change.

atmuc

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #17 on: November 09, 2012, 07:28:54 pm »
1. yes i need a simple feature with this integration just atlas change.

2. my problem was;
i had a camera and a sprite as its child. sprite scale is 1,1,1. sprites collider scale is 10,10,10. for different platform i changed my images. for some reason i set collider type as user defined. when i change sprite images sizes i also have to change collider size because it is in manual mode. i need z scale for collider so i have to use user defined.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #18 on: November 09, 2012, 07:57:02 pm »
1. This isn't such a simple feature :) The whole atlas switching thing is really quite complicated due to how Unity works, but at least its not impossible to do it.

You can change collider depth in the sprite collection editor settings panel.

atmuc

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #19 on: November 09, 2012, 08:08:20 pm »
1.i want it on design time. mptk should change your collection drop down :-)

2.it as depth for all sprites.can you add depth feature for box custom. so it will be full custom :-)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #20 on: November 09, 2012, 08:38:22 pm »
2. Easily done. I've put in TODO.

atmuc

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #21 on: November 09, 2012, 08:51:05 pm »
thanks. one thing more; will your camera be platform compatible? mptk has nothing about camera. if only platform chooser is mptk and it has full integration with 2dtk's camera and atlas chooser it will be perfect. i hope you both make this integration :-)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: MultiPlatform Toolkit integration
« Reply #22 on: November 09, 2012, 09:08:36 pm »
That is a question for the mptk guys as much as it is for us :)