leafbarrett

nspec simplified

Oct 21st, 2020 (edited)
1,257
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //at the end of the start-up animation, stock 1 star
  2. if (window == 1 && window_timer == get_window_value(attack,window,AG_WINDOW_LENGTH) && swift_stock < swift_max)
  3. {
  4.   swift_stock++;
  5. }
  6. //hold special to stock stars, release it to shoot them
  7. else if (special_down && window < 4)
  8. {
  9.   if(window == 2)
  10.   {
  11.     //if 6 stars stocked, go to the fully-charged stance
  12.     if (swift_stock >= swift_max)
  13.     {
  14.       window = 3; //windows 2 and 3 are type 9, the auto-loop one
  15.       window_timer = 0;
  16.     }
  17.     else if (window_timer == get_window_value(attack,window,AG_WINDOW_LENGTH)) //else stock a star at the end of the window
  18.     {
  19.       swift_stock++;
  20.     }
  21.   }
  22. }
  23. //wind-up to throw stars
  24. else if (!special_down && window > 1 && window < 4)
  25. {
  26.   window = 4;
  27.   window_timer = 0;
  28. }
  29. //throw
  30. else if (window == 5 && swift_stock > 0 && window_timer == 1) //throw the stars, loops after 3 frames
  31. {
  32.   swift_stock--; //window is type 9
  33. }
  34. else window = 6; //endlag
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.

×