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"

Character Not Moving?

Hi guys, I'm trying to give my character the ability to move using the virtual joysticks. The left one allowing the character forwards, backwards, left, and right. While the right simply allows the character to rotate and the camera being still viewing through a top down position. But for some reason I can't seem to get it working.

I've also created a zip with my project in on the odd chance someone wants to take a look at where i'm going wrong: https://drive.google.com/file/d/0B88dKYvqd3wOQ0V4QW56b2JET1E/view?usp=sharing

These are the steps I took:

1) Began by using the 3rd person template set up for mobile.

2) Set up the input settings.

alt text

3) Deleted the follow camera and boom, then created a new camera with a spring arm.

4) Set the spring arm length to 700 and the rotation to 0,-90,0.

5) In the character movement I unchecked the Orient Rotation to Movement.

6) Cleared the old blueprints and set up the new blueprints. alt text

EDIT 1: Tried multiplying the axis by 10 and 100 neither worked: alt text

EDIT 2: I've now tested with keyboard inputs but still no results: alt text alt text

Product Version: UE 4.16
Tags:
input settings.png (10.1 kB)
blueprints.png (115.1 kB)
blueprint2.png (127.9 kB)
input2.png (32.6 kB)
blueprint3.png (123.3 kB)
more ▼

asked Jun 05 '17 at 02:12 PM in Blueprint Scripting

avatar image

CosmicMonkey
430 9 12 21

avatar image Irakli Jun 05 '17 at 02:16 PM

Which part is not working, movement or rotation?

avatar image CosmicMonkey Jun 05 '17 at 02:18 PM

Just the rotation

avatar image Irakli Jun 05 '17 at 02:25 PM

cant see how movement is setup so dont know about that, but for rotation try multiplying axis value by 10 or 100 and plugging that into the make vector node. it may result in a more precise find look at rotation result. Also can you go into more detail about the problem. It doesnt do anything at all (no reaction to input from keyboard or gamepad)? It does something but only from Keyboard? It does something but the result is wrong?

avatar image CosmicMonkey Jun 05 '17 at 02:40 PM

I tried multiplying the axis by 10 and 100 and neither showed any results, I've also updated the post with the same information. As to your comment regarding the details of the problem, let me elaborate.

I have two joysticks on screen the left one allows the player to move (which is working) the right allows the player to rotate (doesn't work). The results i'm getting are quite straight forward the joystick isn't making the character rotate or move in any way at all.

Thanks for helping me here by the way :)

avatar image Irakli Jun 05 '17 at 02:56 PM

Sorry just to confirm, movement works but rotation doesnt, right? To pinpoint the problem, can you bind some keyboard inputs to rotation and test to see if keyboard input will rotate the player?

avatar image CosmicMonkey Jun 05 '17 at 03:07 PM

To confirm yes movement is working on the left joystick. But rotation isn't working on the right joystick. I have tested this just now with keyboard inputs of 1,2,3, and 4 but still no results. I've added the additional information into the post as an update along with a copy of my project in a zip in case that might help.

avatar image Irakli Jun 05 '17 at 03:16 PM

your project probably won't upload here because its more than maximum attachment size of 5 MB. if you can upload it somewhere I will take a look. Be sure to remove Saved and Intermediate folders, they are not required and just take up the space

avatar image CosmicMonkey Jun 05 '17 at 03:17 PM

I uploaded it to my drive, thanks again

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

1 answer: sort voted first

Here's you new input setup (notice FaceEast and FaceNorth): alt text

And here's your new Rotation graph (click on picture link at the end to open a big version):

alt text

Good luck!

inputsetup.png (39.6 kB)
rotationgraph.png (275.5 kB)
more ▼

answered Jun 05 '17 at 03:57 PM

avatar image

Irakli
453 15 6 25

avatar image CosmicMonkey Jun 05 '17 at 04:20 PM

Did this work flawlessly for you, as it only turns left and right rotation for me?

avatar image Irakli Jun 05 '17 at 04:44 PM

Flawless for me and quite smooth. Make sure your FaceNorth is setup correctly? It should be Gamepad Right Thumbstick Y-Axis (Notice the Y). Also please double check that you copied the graph correctly.

avatar image Irakli Jun 05 '17 at 04:50 PM

paste some screenshots if you want, I will take a look. Input and rotation graph

avatar image CosmicMonkey Jun 05 '17 at 05:10 PM

Hmmm, still no joy?

alt text alt text

input.png (29.8 kB)
blueprint.png (258.9 kB)
avatar image Irakli Jun 05 '17 at 05:12 PM

Your FaceNorth is Gamepad LEFT Thumbstick Y-Axis, it should be Gamepad RIGHT Thumbstick Y-Axis

avatar image CosmicMonkey Jun 05 '17 at 05:13 PM

Ah nice spot, thanks for all your help. Life saver.

avatar image Irakli Jun 05 '17 at 05:14 PM

My pleasure, good luck with the project!

(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