Hey total unity noob here im creating a brick breaker type game and my bar at the bottom should obviously only move left or right ( horizontally ) how can i disable vertical movement?
It depends how you do your movement. Essentially whenever you set your paddle’s position, keep the Y value the same.
As @LiterallyJeff said - that’s how you’d do it. If there is further trouble with obtaining that in your script, please post it here. Since you are new, please read the pinned forum thread about how to post code / code tags, if you aren’t familiar with that.