spncryn

Blinking within Draw event

Mar 24th, 2020
825
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)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×