Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if (box1.position.x > 9 ) {
  2. box1.position.x = 9;
  3. }
  4. if (box1.position.y > 4 ) {
  5. box1.position.y = 4;
  6. }
  7. if (box1.position.x < -9) {
  8. box1.position.x = -9;
  9. }
  10.  
  11. if (box1.position.y < -4) {
  12. box1.position.y = -4;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement