x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do i smooth my camera when i possess another character

So when i possess another character my screen isnt in the same place as the first character is there a way to make it have a smooth transition or be in the same place ?

Product Version: UE 4.15
Tags:
asasawe.png (82.0 kB)
more ▼

asked Apr 04 '17 at 01:11 AM in Blueprint Scripting

avatar image

Jakupiii
30 12 12 17

avatar image CDMcGwire Apr 04 '17 at 02:05 AM

You would need to override your default camera behavior with a custom script. Depending on the perspective of the game (first person/top down/etc.), you would do this in different ways.

For instance, in a top-down action game I'm working on, the player characters do not have a camera attached to them. Instead, I have a custom actor with a camera that calculates its position as the average between all active players.

There are a few settings you'll have to tweak to make sure that the engine uses your custom camera. But that once again depends on what you're trying to do.

avatar image Jakupiii Apr 04 '17 at 02:24 AM

Im using thirdpersontemp i just want a smooth fade when i change players on wherever i am looking so it doesn't just do a harsh fade back to the center of the screen, eg if im looking up and i change characters then my new player will be looking up. Do you know how i would do this ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can use "GetPlayerCameraManager" to access the game camera and call "StartCameraFade" on it. The attached picture is a script on a level Blueprint that fades the camera out to black when Space is pressed, then fades it in once released. To ensure things stay black until you're done moving/switching the camera, you'll want to check the "HoldWhenFinished" parameter. The fade-in, however, does not need this.

alt text

camera_fade.png (98.8 kB)
more ▼

answered Apr 04 '17 at 05:49 AM

avatar image

CDMcGwire
94 3 4 5

avatar image Jakupiii Apr 04 '17 at 06:47 AM

Thanks man this made it look so nice :) cheers

avatar image CDMcGwire Apr 05 '17 at 07:27 PM

Cool! I'll upgrade this to an answer then.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question