Hello ,
I’m new in Unreal Engine. My game contains a camera switchning system with 2 followings camera (character) and is activated by triggerboxs. This system works perfectly however the character always moves in the same way and not in relation to the changes of the different cameras. So I changed my script with an additional condition (see photo). This script works separately if I manually choose the bk or rt camera but when I assemble the two scripts the character moves normally for the first camera but for the second it moves strangely diagonally while I matiens the key advance everything right (see photo the character move this direction with pressing W).
Thank you for your help
I did a lot of research but I couldn’t find anything
I’m not 100% sure what your asking here but you shouldn’t need to alter the input axis to change your camera. here is an example of how I do a basic camera switch (Both cameras are added to the character and positions in the Character Viewport.
Then in the character BP I have done a basic keypress to run a flip flop for switching between the cameras, this can of course be adapted to fire on overlaps/collisions etc.
I followed your script for the switching camera, it works perfectly (I put a camera in the back of the character (camera1) and another on his right (camera2)).
However when I am on the right camera (camera 2) and I press W key the character moves in the same direction as the previous camera and not in relation to the direction of the camera.(the direction of the character on the photo)
Here are more photos to express my words, i can’t put many photos.
Sorry but I’m not 100% sure what your asking for. Are you saying that when you switch camera you also want the character to rotate 90 degrees to face the same way as the new camera is pointing? This is confusing because that is what a single camera does anyway. Can you provide any examples where you have seen the mechanic your asking for?
Then update you player movement with a Branch where the True/False is determined by that boolean value. and change the Vector from y to x or visa versa