lxFirebal69xl Posted January 30, 2016 Share Posted January 30, 2016 Alright so let me explain myself a bit here, you know how in games you have those options that define how much gamma there is and whatnot? I was wondering how to do that and how to keep it persistent through all the levels the user has created. An example of this would be to manipulate say the Bloom shader, by having an option to toggle it on or off an keep it saved. I'm not asking anyone to code anything for me, but instead to guide me in the right direction. Quote Link to comment Share on other sites More sharing options...
Brutile Posted January 30, 2016 Share Posted January 30, 2016 You would setup your GUI to allow the user to change the values, whether it is using simple textboxes or fancy sliders. You would then save a config file using File System. Quote Link to comment Share on other sites More sharing options...
lxFirebal69xl Posted January 31, 2016 Author Share Posted January 31, 2016 You would setup your GUI to allow the user to change the values, whether it is using simple textboxes or fancy sliders. You would then save a config file using File System. The first part is basically taken care of, but my problem is, I've never messed around with anything to do with files, so I don't even know where to start. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 31, 2016 Share Posted January 31, 2016 Start of simple by trying to write your settings value in a file. http://www.leadwerks.com/werkspace/page/api-reference/_/filesystem/filesystemwritefile-r650 Quote Link to comment Share on other sites More sharing options...
Einlander Posted January 31, 2016 Share Posted January 31, 2016 Are you trying to save some settings so it will be the same the next time they start the game, or just do you just want it to save just for that 1 game? Quote Link to comment Share on other sites More sharing options...
lxFirebal69xl Posted January 31, 2016 Author Share Posted January 31, 2016 Are you trying to save some settings so it will be the same the next time they start the game, or just do you just want it to save just for that 1 game? I'm trying to save the settings even if the player exits the game. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.