I have an simple Isometric set up and four cameras (one in each corner) and I want to make it so that when you press the Left Arrow it switches to the camera at the left of the current one, and the same with the Right Arrow.
I’ve tried using a combination of variables and Set View Target With Blend but that doesn’t really work.
Looking at your left and right presses it doesn’t look like you do any checks to see which one to switch to next. I’m not exactly sure what you want, but I’d imagine you wanted it to cycle between all the cameras in a clockwise or counter-clockwise fashion. If so
Here’s a ss of the cameras in the map (looks kinda like yours). They are named Camera1, Camera2, Camera3, and Camera4.
When the level loads it sets the Player Controller View Target to Camera1 and sets the Current_Camera integer variable to 0 (you don’t have to do , since it’s 0 by default).
Pressing the left keyboard directional key will move to the next camera clockwise. And pressing right keyboard directional key will move to the next camera counter-clockwise.
So as soon as the level loads:
pressing right once will move to camera4.
pressing left once will move to camera2
pressing left or right twice in a row will move to camera 3
Expounding on what freakxnet said, it’s really good to get in the habit of using the debug breakpoints. (A set breakpoint is indicated by solid, little red bubble at the top left a node (like the Switch node in the second ss). way you can check values and blueprint flow live.
In case you didn’t know, you set breakpoints by selecting a node and pressing the F9 key.