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"

3d Side Scroller Template move along X and Y direction


My question is quite easy I suppose, but I still can't figure it out

Let's say we have a default 3d side scroller template, where the character moves along one axis (Y in particular) like in platformer-style games. But what if I want to make the character move along X axis as well as Y axis? In the template we use left-right arrow keys to go to the left and to the right, and I also want to use up and town to go forward and backward.

I opened the charcater blueprint, saw how it is done there and make an additional input. But the character just rotates to the direction I need, but do not move. What shall I do? Probably I've missed some settings in the "Character Movement" script.


alt text

Product Version: UE 4.16
12.jpg (83.9 kB)
more ▼

asked Jun 09 '17 at 09:34 AM in Blueprint Scripting

avatar image

3 1 2 4

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

2 answers: sort voted first

I'm not sure, but maybe it uses "constrain to plane" option. Disable it and character will move in all directions.

more ▼

answered Jun 09 '17 at 09:38 AM

avatar image

4.2k 80 17 103

avatar image Rocotos Jun 09 '17 at 10:30 AM

"Constrain to plane" is the exact option I was looking for. Thanks!

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

There is a lot of missing information, but I would guess that gravity keeps you down or there is some code that restricts your movement by, for example, projecting your position down to a line to avoid drift. Depends on what kind of scrolling you can do, but if you can jump and you get an arc then you have gravity and that might cause the issue. Try disabling gravity. Also try scripting movement upwards using tick, that is setting the position of the character to be current position + <0.1, 0 , 0> and see if you move along the X axis then.

Finally, try making a new character blueprint inheriting from the Character blueprint class and implement the controls yourself. This way no surprise restrictions will be holding you back.


more ▼

answered Jun 09 '17 at 09:45 AM

avatar image

2.7k 106 34 177

(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