Advertisement
degualt

Constrain view borders

May 23rd, 2019
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Constrain view borders
  2. view_xview=clamp(view_xview,0,room_width-view_wview);
  3. view_yview=clamp(view_yview,0,room_height-view_hview);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement