2D sidescroller only one direction

Hi I want to make a 2D sidescroller game in which the character walks permanent to the right. How can I do this?

Hey xjuleyx93-

If you open the 2D Side Scroller template project you can open the character blueprint and find the “Handle movement” section. If you remove the wire from the False pin of the first branch node the character will no longer be able to move to the left.


Hi xjuleyx93,

Use Add Movement Input and set it to a single axis of movement. You can use the 2d sidescrolling template as a good starting point. If you go into Project Settings>Input you can set the axis mapping for moveRight to only move right by removing the second key (should be A).

Thank you!

Thank you!