I’m trying to create a 2D game but have this weird camera effect when I collide with one of the ‘enemies’ in the game. Can anyone point me in the right direction?
I’m using UE5.1. The character and enemy are both Paper2D.PaperCharacter.
Any suggestions would be greatly appreciated!
Screenshot 1: Normal behavior
Screenshot 2: When I collide with an enemy
Hey there @RavagingRunt! Welcome back to the community! So it looks like your camera is on a spring arm with collision checks enabled! To disable that, just uncheck this:
However, you’ll then notice your camera clips into everything! If this is intended (or you won’t have any backdrop to the south of your viewport ever) then great! However, it’s more likely you do want to keep that collision but disable it on enemies. You have 2 primary options: Make a new Collision layer for enemies and make sure it ignores the camera or change the spring arm collision type to something that doesn’t collide with enemies.
2 Likes
Thank you for the quick response! My camera problems are now fixed.
Happy holidays!
-Dan