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"

Rolling ball game camera issue

I'm making a rolling ball game that looks like the popular game Marble Ball. the only issue i have is that since i'm making it from the rolling ball template available , the camera is following the ball but i want it to be like the one in 3rd person games when theball rotates left and right i need the camera to follow it.

Product Version: UE 4.8
more ▼

asked Sep 07 '15 at 07:52 PM in Blueprint Scripting

avatar image

22 11 18 24

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

1 answer: sort voted first

Okay,...I don't like step by step tutorials, but it seems you really in need for that..so I'll try to give as much details as possible, so you can pass this obstacle.

  1. You need to add some new inputs for the mouse, as this roll-ball example have none of them. If you don't know how, then go to project Settings -> Inputs. And there under the "Axis Mapping" add two new variables. "turn" and set it to MouseX with value of 1, and "Lookup" and set it to MouseY, with the value of -1. alt text

  2. Go to the ball blueprint, and add actions to be done with those new inputs. alt text

  3. On the blueprint to, press the "Class settings" because we need an adjustment here alt text

  4. The previouss tep will active some options at the details panel, under the "Class Options", set it to "Character" rather than "Pawn" alt text

  5. Last thing, select the "Spring Arm" component, that have been added after switching to "Character" blueprint" alt text

To be continued with a comment, the answer has a maximum attachments count.


more ▼

answered Sep 08 '15 at 02:51 AM

avatar image

1.2k 33 23 65

avatar image mamoniem Sep 08 '15 at 02:53 AM
  1. In the options of it, set the "Do Collision Test" to be able to not get into walls, and of course set the "Use Pawn Control Rotation"

alt text

  1. Now play!

alt text


avatar image uehero Sep 08 '15 at 10:19 AM

Thank's a lot bro i was needed it so badly.

avatar image mamoniem Sep 08 '15 at 11:20 AM

Good luck ;)


avatar image Timothy LeBlanc Apr 23 '18 at 10:37 PM

I just read this and it helped a ton. Is there a way I can make my character move in the facing direction instead of the same direction?

avatar image EvilCleric Apr 24 '18 at 11:15 AM

Check this link: link text

Note that it all depends on how you made the camera system.

avatar image Timothy LeBlanc Apr 24 '18 at 12:20 PM

Thanks! This helped a lot.

avatar image Dave Lightman Feb 15 '19 at 02:47 PM

So the camera does work (yay!) but the controls are no longer aligned to the camera... How to fix this? (Yes I did change it from Pawn to Actor)

(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