Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Image saving.

Author
Message
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 21st Mar 2009 03:39
Hey, ive used the command, set dispay mode ---, ---, --- and it works fine, but when i reset the game, it goes to its original display mode, how can i make it be always in the one u putted?

REMEMBER ME, IM YITZU!
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 21st Mar 2009 10:22
What do you mean by "reset"?
Closing and restarting the program (then of course you will have to set it everytime; it won't "remember" settings from the last run unless you make it) or minimizing then restoring the window?

Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 22nd Mar 2009 06:16
ohh, yes i mean restarting the program, so, are u sure there isn a way?
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 22nd Mar 2009 09:51
So you mean that you changed the display mode in your code, compiled the program and it was all good, but then the next time you compiled it the display mode was different?

Totally confused, and the topic title doesn't help either.

Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 22nd Mar 2009 20:03
yes, the title should be, bitmap saving XD or something like that now that u say it.

This is the problem, i putted an action that says:



Thats just an example of what im trying to do, and it works fine IN THE GAME, WHEN IM PLAYING IT, but when i exit the game, and run it again, the display mode goes to its original state.

How can i do to make the display mode stays as the last time i putted it IN THE GAME when i run it again?
feiting shadow
18
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 22nd Mar 2009 21:24
There's two ways. If you want that 960 by 600, then set it in the project settings in the IDE. You can choose "custom" then put in the number.

The other way is to save a file and write those values to it. Then read the file every time the game starts to load those into it. Look up file saving/loading or ini files to learn how to do that. It's real easy, like input but using Read File instead of Input.

Signed
------
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Mar 2009 21:48 Edited at: 22nd Mar 2009 21:50
Quote: "
save a file and write those values to it
"


this is also the answer to your music/sound volume question, yitzu. you need to save values to a configuration file from within the program itself that it can look for the next time it's launched and set values based on it's contents.

Login to post a reply

Server time is: 2024-11-25 10:56:07
Your offset time is: 2024-11-25 10:56:07