Hello, I am new to bluepårints and couldn’t find any tutorial on how to do it but figured I can just ask here.
I made a postprocessingvolume that looks very pixelated for my ps1 style horror game. I made it so you can toggle on and off in settings, but when I start the game and click settings inside the main menu map and then click play, when I spawn in the thirdpersonmap the VHS settings has not applied and I am wondering how I could save it between levels.
Here is my code for saving all the other stuff
2 Likes
The easiest thing for you to do right now, is to just put the PP in every level.
If you really want to set it once and make it permanent, then you need to find out about level streaming
yeah but if you turn off it in the settings i want it to save for every other levels. Is there an easy way for that?
1 Like
If you put the PP on the player, then you only have it in one place, and can turn it on and off
How do I do that? I am sorry for my inexperience
1 Like
The player camera already has its own basic PP settings, in the details panel.
If that’s not enough, you can add a post process volume to the player character, and set it with code in the player
Sorry for the late response was on holidary
So, I have now put a postprocess in the characters thirdpersoncamera and firstpersoncamera (because I have both). How do I replicate this code to make it enable or disable with the postprocess in the character?
This is the code I want to replicate:
1 Like
When you say ‘replicate’, do you actually mean replicate for multiplayer, or ‘get it working’?
I meant to say, there is already a PP on the camera
So if I set a vignette, for instance, I can turn it on and off with
It’s exactly the same process if you have put a PP component in the player ( like I detailed previously )
How can I then set the material on and off?
1 Like
By setting the blend weight, like I showed. That is the PP ‘on-off switch’
I got it now but no camera is being used in the mainmenu map so I do not know how I can mix that in with the camera and make them work together
1 Like
I’m not sure, but I don’t think you can have a PP on a menu / widget.
I also get this error when i put the code into the options menu:
put the wrong screenshot of the code but I basically copied the one you showed
If you’re trying to turn the PP on/off from a widget, you need to get a reference to the player from the widget. The thing is, is there actually a player when the widget is open?
If there is, you can ‘get actor of class( MyPlayerCharacter )’ and reach it that way.
If the player doesn’t exist at that time, you have your work cut out. You would probably need one of the following options
-
Using the save game or game instance to store the on/off switch variable, so that when the player does load, they know what to do
-
Don’t put the PP in the player, but then you need somewhere else central for it, like in each level.
can you show me an example of how the code would look to save the pp and make it the same for every level with for example game instance
Can you tell me what PP effect you want?
Do you use the normal editor default player in your levels? ( first or third, no fancy spawning etc ).
I use a postproccesingvolume where i then have a material for a VHS effect. I also tweak some settings like film grain. I only use normal editor for what I know. My mainmenumap doesn’t have a character in it.
1 Like