1 decade ago by adshead
Hi,
I'm designing a game where the levels are different sizes in terms of their height. Some are quite square where as others are long and thin (like a corridor).
I currently have a canvas that is tall enough to display any of the levels, but for the levels that aren't very tall I'd like to shrink the canvas height so that I don't see any unused areas of the canvas.
Is it possible to auto-resize the canvas height for each level?
If it's not possible, is it at least possible to center the narrow levels so they appear in the center of the canvas by perhaps setting some kind of offset?
Any help/suggestions appreciated!
Cheers,
Dud
I'm designing a game where the levels are different sizes in terms of their height. Some are quite square where as others are long and thin (like a corridor).
I currently have a canvas that is tall enough to display any of the levels, but for the levels that aren't very tall I'd like to shrink the canvas height so that I don't see any unused areas of the canvas.
Is it possible to auto-resize the canvas height for each level?
If it's not possible, is it at least possible to center the narrow levels so they appear in the center of the canvas by perhaps setting some kind of offset?
Any help/suggestions appreciated!
Cheers,
Dud