How to make a '2D' character controller?

Hi, I’m working on a small game for my friends which is a simple ‘2D’ (its viewed from the side but still in a 3d world) platformer. I can’t seem to find anywhere that has a good tutorial for how to create movement. I am using blueprints and if you need any more information, I would be happy to give it!

Hey there @The10thDoctor89! Welcome back to the community! So Unreal Engine doesn’t really have a dedicated 2D mode, and as such relies on Paper2D/PaperZD, as two plugins to support this. This means much of what you do, is in fact 3D under the hood, even if it doesn’t present itself that way. This tutorial from Cobra is pretty solid for beginners!

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

Hello, fundamentally creating 2D movement in a 3D engine like Unreal is just about writing the game code with two axis instead of all three. However if you’re using physics or other effects that can push objects around, you’ll want to constrain them to the 2D plane as well, lest they end up in, well, another dimension.

A couple things I can offer you:

If you’re using the Character Movement component, you can look at this Planar Movement section for options to constrain the movement to the plane of your choosing.

If you have physics enabled on your objects (including enemies etc.), you can constrain them to the 2D plane of your choosing using this option:

That will prevent them from ever moving outside the specified plane.

Hopefully that helps!

Alright so this is pretty much what I need (since it isnt a 2D game, it is a 3D game where you can only move left and right)
Image:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.