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"

3rd Person Character touch controls

Hi, I'm trying to make a 3rd person game where the character runs automatically with the user swiping a touch screen to change the players direction and tapping to jump. To start with I was using keyboard controls and that worked great. Now i'm trying to implement the touch controls I need a little help. I used a camera swipe tutorial to start with and then have been trying to adapt it with no success. The character jump works fine. However the character current only moves to the left and only moves when the mouse button is being pressed. On a side note: The character currently only moves backwards forward left and right. Any advice on moving him diagonally would be much appreciated. Thanks in advance for your help. Andy

Product Version: UE 4.15
Tags:
more ▼

asked Jun 14 '17 at 03:35 PM in Blueprint Scripting

avatar image

themrpalmer
6 1 3 6

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

1 answer: sort voted first

This might not be the most elegant solution however it does work. If you're looking for a character movement BP where the character moves without input, touch swipe to change direction up, down, left, right and tap to jump then this will work. Remember to create the variables before you start. Boolean for whether the screen is pressed and 2D Vector for logging the touch locations start and end on the screen.

alt text

[1]: /storage/temp/201255-overview.jpg

more ▼

answered Jun 25 '17 at 01:20 PM

avatar image

themrpalmer
6 1 3 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