Custom Gameplay options how to?

I’m trying to add a feature in a game so that the player can toggle some options to their preferences. An example would be camera shakes or animations(short camera cuts and animations for skill that can be found in anime games like mostly).
I would like to let the player turn these features on or off if they wish to through a checkbox logic; turning it off would prevent camera shakes from executing.
My question is where to declare this boolean.
I did google and see there exists a “Get Game User Settings” node. But it seems like something used for machine settings not gameplay logic related elements.
I’d appreciate any advice and insight on custom toggle options implementation for such cases.

Hi,

Game User Settings has its own Functions, not designed for what you want

First of all - in order to save this boolean (and everything else you need to save) you need SaveGame setup

It looks like this but you should learn about how to save and invoke the data from there:

Once you have this you can use SaveGame Reference to get and save data

You can modify this boolean however you want, just when you do it - set this value in your SaveGame, afterwards use “Save Game in Slot” node to save it! (without this step it’s gonna get lost)

Later in gameplay you simply Get the info from SaveGame to manipulate the Game

Hope that points you out to the right direction :slight_smile:

1 Like

Thanks for the info. I didn’t think of save game objects and I think it would work for me.
Just curious though, if there are 2 or more save game slots and the player switches a camera shake option for let’s say “slot a”, it wouldn’t apply to other slots if my understanding is correct. I think that’s why I thought of going ahead to use game settings to make it more of a global option regardless of whichever save slot.
Thanks for the reply I’ll check into save game objects

When you put something different to the Slot Name = you create a totally new Save Game (Variables in referenced SaveGame will get their Default Values you’ve set them up in the SaveGame)

And so you can make different saves for different Players or Characters in your Game to store their progress or selections :slight_smile: