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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Help with a basic touch movement system.

I'd like to have a movement system for my mobile game where the player can touch anywhere on the screen and have the actor mimic the movements. For example, if a player moves his finger up down left or right anywhere on the screen the actor will too. This is so the player's finger won't cover up the actor as my game requires precise movements. A perfect example of what I want is here. If someone could walk me through it or point me towards a good tutorial that would be really great. I feel like it shouldn't really be that difficult.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 19 '17 at 09:43 PM in Blueprint Scripting

avatar image

r4rev2
68 14 17 19

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

1 answer: sort voted first

When you create a new project, select Mobile / Table and the project will include on-screen joysticks for you to use.

If you want to track precise movements, you can Detect when a user touches the screen, and use the x/y coordinates' delta on every tick to translate to player movement.

Example:

ue_answerpic12a.png (157.6 kB)
more ▼

answered Jun 19 '17 at 10:43 PM

avatar image

BenVlodgi
2.1k 38 17 52

avatar image r4rev2 Jun 20 '17 at 04:00 AM

That doesn't answer my question, I need it to mimic touch motions from player. The joystick wont work good for a bullet hell.

avatar image Ninjin Jun 20 '17 at 07:15 AM

alt text

Everything else is math ;P

avatar image r4rev2 Jun 20 '17 at 06:43 PM

Where would I go from there. I understand I need to get coordinates of where the player is touching and then add/subtract to the actor's coordinates.

avatar image Ninjin Jun 20 '17 at 06:54 PM

What you are trying to do is nearly like a simple swipe. Everything about swipes can be found here. <3

avatar image BenVlodgi Jun 20 '17 at 04:56 AM

Updated with an another way for you to solve your problem.

(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