Hello Guest

Author Topic: Camera, Fullscreen and Ratio?  (Read 4964 times)

vicenterusso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 25
    • View Profile
Camera, Fullscreen and Ratio?
« on: March 01, 2013, 10:06:37 pm »
How do I setup a camera to avoid my background (and everything else) to stretch?

Heres what I need:
- The game have a usable centered area of 1024x768, but my background is wide, 1280x720. When in fullscreen, its ok to stretch everything, but keep the aspect intact, just showing extra side areas already in my background.
- Plus, my GUI (is 2D Toolkit concern?) must remain in that usable area of 1024x768

I got it working with "resizeable windows" enabled, but i really don't want that. Is this a bug?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Camera, Fullscreen and Ratio?
« Reply #1 on: March 02, 2013, 03:12:10 pm »
Do you use tk2dCamera?
You can do this quite easily using overrides.

If not it is still possible, just requires a bit of work to set up.

vicenterusso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Camera, Fullscreen and Ratio?
« Reply #2 on: March 02, 2013, 04:24:48 pm »
Got it working, but I don't know what I did :P