Hello Guest

Author Topic: Multiple cameras  (Read 3685 times)

Florp

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Multiple cameras
« on: September 01, 2013, 03:37:12 am »
Hi,

I'm using a two-camera system so I can have some GUI elements zoomed and others not. Looks great....  but the collision boxes of the non-zoomed buttons are scaled as if they are seen from the zoomed camera, so they don't line up correctly.

This makes sense to me, because the tk2dUIManager is referencing the zoomed camera, so it's "seeing" the collision detectors accordingly.

What's the fix for this? I tried to add a second tk2dUIManager to handle the non-zoomed UI elements separately, but it appears to be a singleton and won't let me add a second instance.

Thanks for any suggestions,

-Florp

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Multiple cameras
« Reply #1 on: September 01, 2013, 01:24:09 pm »
Get 2.2 beta 1 - it adds official support for multiple cameras, including mixed 2d / 3d.