Hi,
I'm trying to make a Breakout-type game, and followed a tutorial I found here. I've also searched for issues and solved some, but one thing remains a mystery to me: When I use the pad (by letting it follow them mouse's X-coordinates), it doesn't stop when hitting one of the walls on the side of the playing-area. Let's say the playing-area is a box in the middle of the screen, covering about a third of the screen. I want the pad to stay in there, and not go all the way over to the edge of the screen.
Thanks for any help.