Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - oscar.rpr

Pages: [1]
1
Support / Re: Scaling sprites in X-Axis (width)
« on: September 29, 2014, 08:58:31 pm »
I solved my problem using those recommendations.

Just in case, someone finds this useful, I decide to use Stretch To Fit for those resolutions and ratios close to my native setup, so, in this way, it's almost unnoticeable, using the overrides of tk2dcamera, but, for resolutions like 4:3, 5:4 and others like that, I use Fit Visible, and I use letterboxing which let me keep the same game region.

And after that, the game looks good in all tested resolutions for PC and Android.

Thanks unikron for the help.

2
Support / Re: Scaling sprites in X-Axis (width)
« on: September 27, 2014, 09:42:37 pm »
I'm sorry  ;D, but I have no idea what you meant by letterbox? And yes, I test the stretch to fit and doesn't look really good in that case, especially with fonts.

Updated: I already search about it, and it's a good idea, but it looks good in a videogame? I don't know 2D games that uses letterbox.


3
Support / Re: Scaling sprites in X-Axis (width)
« on: September 27, 2014, 08:41:02 pm »
Yes, I know that, but what other optiones do I have? I leave you an example.

This first image is in my native resolution using Fit Height, which works correctly.



The next one it's in 1600x1024 using Fit Visible, but this one adds some bars at top and bottom, which modifies the position of the bricks and some things



The last one is in 1024x768 using FitHeight, and if you compare with the ideal one (native resolution) there is some lost of information because doesn't scale the width of the bricks.



Which is the better option? Apply that non uniform scaling? Because if I fit either height or width I'll need to scale to keep the same area for the game.

Thanks

4
Support / [Solved] Scaling sprites in X-Axis (width)
« on: September 27, 2014, 03:08:48 pm »
Hello everyone

I been working in a Breakout clone, and I have problem, first, I use a tk2dcamera using pixels per meter = 100 and my native resolution is 1920x1080, and an override with Wildcard and Fit Height, which works perfectly because maintains the same height without worrying about resolution, but I'm designing the levels which gave a problem, because the sprites doesn't scale correctly in the X-Axis (width) and in some resolutions show less sprites because the camera it's setup to fit height.

The question is, I need to maintain the fit height to avoid more complicated repositioning on the Y-Axis, so, how can I scale my sprites to fit width from code? without chaning the Auto Scale: Fit Height definition?

Thank you

Pages: [1]