Kupoapo

draw_text_reset (2.3)

Jan 12th, 2021
413
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //#########################################################
  2.  
  3. ///     Description:    Resets the scrolling text.
  4. ///     Usage:          draw_text_reset()
  5.  
  6. //########################################################
  7. function draw_text_reset(){
  8.    
  9.     #region SOURCE CODE
  10.  
  11.     //Checks if the variable has been defined.
  12.     if variable_instance_exists(self.id, "_text_char"){
  13.    
  14.         //Resets the defined variables for text scrolling.
  15.         _text_char      = 0;
  16.         _text_prev      = 0;
  17.         _text_sleep     = 0;
  18.    
  19.     }
  20.  
  21.     #endregion
  22.  
  23. }
  24. //########################################################
  25. ///
  26. ///     Created by Kupoapo
  27. ///
  28. //########################################################
RAW Paste Data