Advertisement
plonp

GML room_count

Jul 30th, 2022
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function room_count() {
  2.     var id_counter = 0;
  3.     for(var i=0; i<=id_counter;i++) {
  4.         if room_exists(id_counter) {id_counter++;}
  5.         else {return id_counter;}
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement