SOLVED: Not understanding screen resolution

Started by johanvepa, Sat 24/10/2015 21:04:13

Previous topic - Next topic

johanvepa

I'm toying with importing a really large background, its a map that the player character can then walk around on. Scrolling happens.

I'd like game's resolution at 640x400.

Map is 1600x1200.

For starters, I just use the games normal game template.

Here comes what I dont understand: when running the compiled game, map is shown at 640x400 resolution (as far a my eye can see), but player character is shown at 320x200.

I would have expected player character to become smaller, half the height and half the width. Why doesn't that happen? Now I have a 320x200 pixel person walking around on a 640x400 pixel background.
Oh, ans the GUI's too, the actual GUI on top of the screen has become smaller but the pictures on said GUI are still looking like size 320x200.

I don't get it?


Cassiebsg

The default templates have the default sprites at 320x200, if you want to use them in your 640x400 game, you'll need to export them and import them at the correct resolution of 640x400. Or just import your own sprites at the right resolution.

When you change the game scale, you're sprites will not be converted or resized. You need to do that your self.

Hope it helps and that I explained good enough. Good luck with the project. :)
There are those who believe that life here began out there...

Snarky

You sure about that? The description of the problem sounds like the graphics have been rescaled?

Each sprite has a setting that's either "low-resolution" or "high-resolution". In a high-resolution game (640x400 or higher), sprites set to "low-resolution" are automatically doubled in size in-game (at least for some purposes, like within characters). I would guess that's what happening here. Try changing the setting.

(This is from memory, so I can't vouch for the details 100%.)

johanvepa

Changing the sprites' settings worked. Thank you for this solution.

It seems all default sprites and imported character sprites are set at 320x200 by default. New sprites are at game's set resolution.

SMF spam blocked by CleanTalk