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"

Camera following cursor within borders

Hello, I'm struggling to create such camera movement so the camera accelerates to the cursor if it is crossing set borders on the screen (about 1/5 for horizontal and 1/3 and 1/4 for vertical). However the trick is that if player character crosses the opposite border, the camera should stop moving and stay within the distance of border screen location blocking one of the movement axis. I tried to achieve that by interpolating object that is a camera towards player character and managed to properly move it this way, but in the situation where player character is during movement and some axis of camera movement are blocked, the camera will try to reach cursor then interpolate towards the player character so it won't cross the border creating unwanted camera stutter as the camera moves in example left<->right repeteadly. I tried to set some safety so that if the axis "block" is on the camera should not accelerate towards the cursor but that didn't work as the issue occurs sequentially, there is always a point in time where camera reached permitted area of the screen, next thing that happens is acceleration towards cursor and sequence starts again creating camera stutter.

What I want to achieve is similar to moba-type camera with semi-locked mode, allowing you to look around the character having maximum look-out distance like in Heroes of the Storm.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 30 '15 at 05:10 PM in Blueprint Scripting

avatar image

Skrzeku
50 3 8 14

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

0 answers: sort voted first
Be the first one to answer this question
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