Making the demo screen bigger...

Started by SSBFreak, Fri 07/02/2014 04:20:04

Previous topic - Next topic

SSBFreak

I have a question about the programming and I think this is a problem that's supposed to be easily fixed, but I can't figure out how to fix it and I can't find anything about it in the manual unless it's listed under a different category.

In the game I've been toying with, I have larger-than default sprites and backgrounds. However, while I'm satisfied with them, when I try loading up the game with Run, the tiny window pops up and just shows the bottom of my character's legs, walking around the test room.

I don't want to scale the screen size because that will just distort the sprites. I'm trying to find a way to increase the viewing field of the window so that it'll show more of the room at once. Like I've said, I've tried several things and tried doing searches in the manual but I can't find the answer...

SpacePirateCaine

It sounds like either your character is much larger than your background or is being artificially made that way. You've confirmed that the size of the sprite is smaller than your backgrounds and that your walkable areas aren't artificially increasing scaling? You can check how your character will appear in the room outside of the game by going to the "Show this Room's..." and selecting "Characters" from the pull-down menu.
Check out MonstroCity! | Level 0 NPCs on YouTube! | Life's far too short to be pessimistic.

Khris

You don't have to necessarily scale the screen, but you need to increase the game's native resolution. If you use room backgrounds bigger than the resolution, AGS will simply scroll them.

You can change the game's resolution to 640x400/480, 800x600 and 1024x768 (in General settings). Usually, you start with choosing a resolution, then draw appropriately sized backgrounds and sprites.
Changing the resolution mid-game is a bad idea; it should be among the very first things you do when setting up a new game.

SSBFreak

Quote from: Khris on Fri 07/02/2014 09:38:54
You don't have to necessarily scale the screen, but you need to increase the game's native resolution. If you use room backgrounds bigger than the resolution, AGS will simply scroll them.

You can change the game's resolution to 640x400/480, 800x600 and 1024x768 (in General settings). Usually, you start with choosing a resolution, then draw appropriately sized backgrounds and sprites.
Changing the resolution mid-game is a bad idea; it should be among the very first things you do when setting up a new game.

Changing the resolution fixed the window size problem, but now my character's sprites got scaled to about twice as big as what they should be. Since you say that changing the resolution mid-game is a bad idea, I'm assuming I'll need to start a new game with the bigger resolutions to fix the problem.

Crimson Wizard

You may go to Sprite Manager and correct resolution hint property for every character sprite (to 640x480).

SSBFreak

Quote from: Crimson Wizard on Fri 07/02/2014 14:32:20
You may go to Sprite Manager and correct resolution hint property for every character sprite (to 640x480).

Thank you. That helped a lot. Things seem to be working fine now.

SMF spam blocked by CleanTalk