Camera goes up on pressed, down on released

Goodday,

I’m trying to make a little system so you can check the map, I’m trying to make the camera go to a topview and then back to thirdperson.

I have this so far:

It only goes up but not down.
I want it so you have to hold it to keep the map showing.

Hi @Doeglas !

As I understand from your code, it is setting the Relative Location on Rotation correctly when the camera goes up, but you are not telling it to go down when the camera goes down, if you have a static camera while the map is open, you could save previously the transform of the camera with the map opened/closed. If it is dynamic, it should Modify the current transform instead of setting it directly:

I wrote the first option here, maybe it gives you an idea on how to continue, hope it helps!

BTW, what does that SetCamera node do? I thought it was on the engine, but looked everywhere and couldn’t find it

1 Like

The SetCamera Node is a Timeline. I want the transition between the 2 locations smoothly.

I dont want to do too much with Event Tick nodes so if you have any other idea’s that would be great.

What I would do then is:

  • Remove the link between the Released on the TestKey InputAction node and the Reverse on the SetCamera node
  • Copy what I encircled on green and paste it below your bp
  • Join the Released on the TestKey InputAction node with the Play of the copy of the SetCamera node
  • Adjust the Lerps for the Rotator and Vector with the camera without map opened values. (I’d recommend saving it as two transforms, one for the transform without the map opened and another with the map opened)

1 Like