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. 

Fighting Game Camera

Hello
I'm trying to figure out a fighting game type of camera where it follows the average of two locations basically.
I was using THIS tutorial for it but there seem to be some issues translating it to a 2D version.
What happens
Blueprints
Any and all help would be appreciated as I have basically no clue why this is happening.

I've actually managed to get it to work now. Just had to change the camera from 'static' to 'movable'.

Product Version: Not Selected
Tags:
more ▼

asked Apr 21 '15 at 11:14 PM in Blueprint Scripting

avatar image

Jiziason
3 1 3 5

avatar image Azarus Apr 24 '15 at 06:59 PM

Rotate your camera with 90 degrees?

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

1 answer: sort voted first

you never set the cameras rotation. maybe try FindLookAtRotation with the average position of the characters as the target. (add character positions, divide by 2)

more ▼

answered Apr 22 '15 at 02:39 AM

avatar image

ScottSpadea
9.6k 320 205 449

avatar image Jiziason Apr 22 '15 at 09:25 PM

For some reason it creates an additional CameraActor when I test it. Is this supposed to happen?

avatar image ScottSpadea Apr 23 '15 at 03:55 AM

what blueprint spawns your CameraFocus actor? maybe your gameMode blueprint could use GetAllActorsOfClass to check if a CameraFocus actor exists, and if it doesn't exist, it spawns one, if it does exist, it uses that one.

https://answers.unrealengine.com/storage/attachments/40137-gdc_tod_bp_pc.jpg

avatar image Jiziason Apr 26 '15 at 05:26 PM

I actually just dragged and dropped the CameraFocus actor because nowhere did it specify in the tutorial I linked. :)
I tried following your picture but I'm not exactly sure how to SET CameraFocus after the GET since it's a separate actor and the action menu doesn't seem to find anything relating to it.
Picture

(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