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"

Player Controller Like TempleRun or SubwaySurf

Hi,i try to make a EndlessRun Game and have problems with PlayerCotroller. I made it for Mobile and need Controller like TempleRun or SubwaySurf, i try to use Default Virual Joystik but is not what i need,i don't need Widget/UI(butons need to be unseen) .Can Someone help me with this?

Product Version: UE 4.12
Tags:
more ▼

asked Jul 12 '16 at 03:14 PM in Using UE4

avatar image

Midu1995
30 9 9 13

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

2 answers: sort voted first

Hi Midu1995,

You can turn off the default Virtual Joysticks by left-clicking on Edit on the very top left of the editor window, going to Project Settings, left-clicking Input on the left side and then under Mobile, change Default Touch Interface to "None" using the drop down.

You can also get to the Project Settings by clicking the "Settings" button on the top center menu bar of the editor and choose, Project Settings.

more ▼

answered Jul 12 '16 at 07:13 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 17 127

avatar image Midu1995 Jul 12 '16 at 07:49 PM

I know how to turn off The Virtual Joystick, i don't know how to create one, like in TempleRun or SubwaySurf.This is my problem

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

Endless runner game like the one you mentioned are using swipe left to go left, swipe left to go right and swipe upwards to jump. There is no built in gameplay classes in Unreal Engine to do that, but it is very easy to create one (may not be the case if you still do not familiar with input handling and gameplay classes).

There is an endless runner game example that you can use as a reference:

https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1/yS-yQfo0lc0/index.html

Although the last time I checked it is using keyboard input, but if you have already know how to handle touch input then it will be quite easy to replace the existing one.

more ▼

answered Jul 21 '16 at 06:50 AM

avatar image

Heapcleaner
521 15 4 19

avatar image Midu1995 Jul 21 '16 at 10:15 AM

By this example i made my endless run game, but i have another problem ,i have a infinite loop. The spawning TitleFloor won't stop( they go far far away in front of me).How can i solve this? i do exactly like in video, all works instead of this loop.And this is too bad for performance, way too bad.

Example

(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