Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //at the end of the start-up animation, stock 1 star
- if (window == 1 && window_timer == get_window_value(attack,window,AG_WINDOW_LENGTH) && swift_stock < swift_max)
- {
- swift_stock++;
- }
- //hold special to stock stars, release it to shoot them
- else if (special_down && window < 4)
- {
- if(window == 2)
- {
- //if 6 stars stocked, go to the fully-charged stance
- if (swift_stock >= swift_max)
- {
- window = 3; //windows 2 and 3 are type 9, the auto-loop one
- window_timer = 0;
- }
- else if (window_timer == get_window_value(attack,window,AG_WINDOW_LENGTH)) //else stock a star at the end of the window
- {
- swift_stock++;
- }
- }
- }
- //wind-up to throw stars
- else if (!special_down && window > 1 && window < 4)
- {
- window = 4;
- window_timer = 0;
- }
- //throw
- else if (window == 5 && swift_stock > 0 && window_timer == 1) //throw the stars, loops after 3 frames
- {
- swift_stock--; //window is type 9
- }
- else window = 6; //endlag
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement