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"

Need help blueprinting a Semi-locked 2D camera

Hi

I'm trying to lock my camera to my 2D character but I want it to be semi-locked to where the mouse is.

What happens is that the Character never leaves the screen, but depending on where the mouse is on the screen, you'll see more of that part.

I've attached 3 images to show what I mean, apologies for the poor drawings. The circle is where the mouse is that.

I've tried messing around with "Get Hit Under Cursor by Channel" node, multiplying the Location vector to 0 on both X and Z axis, and around 0.3 or so for the X axis. It sort of works, but it doesn't because there's no screen limit and if I move the character it sort of stops working.

Any help would be appreciated.

Thank

Product Version: UE 4.10
Tags:
mouse1.png (9.7 kB)
mouse2.png (9.7 kB)
mouse3.png (9.7 kB)
more ▼

asked Dec 10 '15 at 02:17 AM in Using UE4

avatar image

sinspaw
86 3 6 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Anyone? Please.

more ▼

answered Dec 11 '15 at 05:46 PM

avatar image

sinspaw
86 3 6 6

(comments are locked)
10|2000 characters needed characters left
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