2D Toolkit Forum

2D Toolkit => Support => Topic started by: Florp on September 01, 2013, 03:37:12 am

Title: Multiple cameras
Post by: Florp 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
Title: Re: Multiple cameras
Post by: unikronsoftware on September 01, 2013, 01:24:09 pm
Get 2.2 beta 1 - it adds official support for multiple cameras, including mixed 2d / 3d.