You use godot right? gotta clamp the side inputs. 
Hope this helps!
Viewing post in Tiny Little Things jam comments
Thank you for the suggestion, I'll look into it for sure :) The camera itself in my case isn't a problem because it's attached to a CharacterBody2D that moves like a "player", but is invisible (weird way to move a camera and UI, maybe? xD). I think the solution lies in simple collisions but I need to look into it because it didn't seem to work at first when I tried before the deadline.