2D Toolkit Forum
2D Toolkit => Support => Topic started by: vicenterusso 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?
-
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.
-
Got it working, but I don't know what I did :P