SHARE
TWEET

room transition

a guest Aug 29th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #event create
  2. target_room = room_next(room);
  3. active = -1;
  4. #event step
  5. if active = -1 { //idle
  6.     if place_meeting(x,y,oplayer) {
  7.         active = 0;
  8.         persistent = true;
  9.     }
  10. } else { //activated
  11.     if room != target_room {
  12.         if active++ >= 10 {
  13.             room_goto(target_room);
  14.         }
  15.     } else if !active-- {IDD();}
  16.     //draw
  17.     DSA(active/10);DSC(c_black);
  18.     draw_rectangle(0,0,g.gui_width,g.gui_height, false );
  19.     DSA(1);DSC(c_white);
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top