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"

Right Click and Drag RPG Camera Mechanic issue

I'm having a little trouble with a blueprint that is working almost perfectly but I'm having a slight issue which is irritating me and I can't seem to find what's causing it.

I have a camera attached to the player and I rotate the camera and the player by holding right click and dragging in whichever direction I want.

It works well and when the game starts, the player can right click and drag a full 360 degrees, which is what I want. However, when I toddle the cursor back on screen the camera then seems to only rotate as far as the edges of the screen.

Here's my blueprint for my character. Anyone got any ideas?

alt text

Product Version: Not Selected
Tags:
more ▼

asked Nov 07 '14 at 01:22 PM in Blueprint Scripting

avatar image

Kagamusha
173 37 33 44

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

2 answers: sort voted first

I just fixed this issue today. To resolve this issue, you must understand input modes. Unreal has "Input Mode Game Only", "Input Mode Game and UI", and "Input Mode UI". When you show the cursor, I think the input mode automatically switches to Game and UI. In order to scroll without the viewport blocking you, when you hide the cursor again, you must use Set Input Mode Game Only.

more ▼

answered Mar 08 '15 at 12:26 AM

avatar image

jbarrett227
30 1 1 2

avatar image Kagamusha Dec 19 '15 at 11:04 PM

Thanks for this and so sorry for late reply! Simple fix, love it :D

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

Can u make tutorial

more ▼

answered Oct 14 '15 at 07:09 PM

avatar image

demonith88
1

avatar image Kagamusha Dec 19 '15 at 11:04 PM

Copy my blueprint setup and just after you set your Enable Click Events bool to false, drag off from the player controller and type "Set Input Mode Game Only" and you'll be sorted :)

(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