I'm designing code that will cause a bat to move left and right when a button is pressed. Basically it adds or takes away from the bat's Left value. I want to make it so that the bat won't be able to go offscreen, but how do I do that?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.