Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (box1.position.x > 9 ) {
- box1.position.x = 9;
- }
- if (box1.position.y > 4 ) {
- box1.position.y = 4;
- }
- if (box1.position.x < -9) {
- box1.position.x = -9;
- }
- if (box1.position.y < -4) {
- box1.position.y = -4;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement