Hello Guest

Author Topic: Help with Camera  (Read 3410 times)

wagenheimer

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
Help with Camera
« on: April 14, 2014, 02:25:38 pm »
I need this behavior is this possible?

- I created the game using 1920x1080 resolution. 1,77 proportion.
- If the proportion is smaller, I want it to "cute out" the borders out to fit the proportions! This already works, I set "Fit Height" on Tk2dCamera.
- But, if the proportion is bigger, actually it add black borders to it, and I do not want it! I want instead of adding Black Borders that it Stretch the current Camera to fit the whole screen.

To sum it up :
- Keep the Height Proportion, cutting out the borders if is need, or stretch it if need instead of adding black borders.

Is it possible?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Help with Camera
« Reply #1 on: April 14, 2014, 06:53:38 pm »
Not possible in the UI, but you can attach a script to the tk2dCamera to do this easy enough. What you need to do is create just one override, and then change tk2dCamera.CurrentResolutionOverride as you see fit.