change camera position when key pressed
I have a 3th person game concept and am trying to move the camera from one side of the charater to the other side when the player presses the H key on his keyboard (reason being: people sometimes like their character on the left, or right, depending on the situation) but have not been able to success so far.
how would this function look like in blueprints? I've already set the camera to the first starting position (to the right of the character), I'm guessing I could create a second camera and just switch between them? but this wouldn't be smooth since if the camera could just be moved to the other side of the character, I could create an animation while transitioning to the other view.
Im trying to create a camera that moves to the other side of the character and have so far been unable to get this working, how would one create this functionality?
asked Oct 15 '16 at 04:13 PM in Blueprint Scripting
I would do something like this
Next Position function:
Camera Positions is just an array of rotators and I just added 2 default values to it. (0,0,90) and (0,0,-90).
If you have any questions please tell me!
Edit: You can play with the InterpSpeed value from the RInterpTo node to make the transition slower or faster
Follow this question
Once you sign in you will be able to subscribe for any updates here