SpriterDrag

Simple window size script

Feb 29th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///Handle window size.
  2.  
  3. //If the window is not set to fullscreen.
  4. if (global.windowsize != 3) {
  5.    
  6.     //Set up the size of the window.
  7.     window_set_size(256*global.windowsize, 244*global.windowsize);
  8.  
  9.     //Center the window if it's not centered.
  10.     window_center();
  11.  
  12.     //Disable fullscreen.
  13.     window_set_fullscreen(false);  
  14. }
  15.  
  16. //Otherwise, if set to fullscreen.
  17. else {
  18.  
  19.     //Set window to fullscreen.
  20.     window_set_fullscreen(true);
  21. }
Add Comment
Please, Sign In to add comment