Advertisement
spncryn

Blinking within Draw event

Mar 24th, 2020
1,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region Set blink delay.
  2. var blink = 0;
  3. blink += 0.1
  4. if blink <= 1 draw_set_alpha(1)
  5. if blink > 1 and blink <= 2 draw_set_alpha(0)
  6. if blink > 2 {
  7.     draw_set_alpha(1)
  8.     blink = 0
  9. }
  10. #endregion
  11.  
  12. // Draw sprite.
  13. draw_sprite(x, y, sprCursor)
  14.  
  15. // Reset values.
  16. draw_set_alpha(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement