Download

Locking Axis in 2.5 D?

Hey all,

I’ve been trying to make a game using the side scroller template and was wondering how to lock the player character from looking into the background when turning left or right. If anyone can link me to a tutorial or send me pics of blueprints I’d really appreciate it.

In case I wasn’t very clear this is what I’m trying to accomplish.
https://www.youtube.com/watch?v=cE_DdPyaWO0

The easiest way to accomplish this is to set the character’s rotation. Although I’m still very new to the engine, and I feel like there’s a better place for this kind of logic (Custom Pawn, or Character Movement perhaps?)

This modification to the default SideScrollerCharacter Blueprint will do what you want:
Capture.PNG