Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Step
- switch(Standing)
- {
- case 1: //Standing
- switch(State)
- {
- case 0: //Idle
- if LeftButton
- {
- Sprite = Attack1A;
- Frame = 0;
- State = 1;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- if RightButton
- {
- Sprite = Attack2A;
- Frame = 0;
- State = 1;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- case 1: //Attacking
- if LeftButton {ComboLight += 1;}
- if RightButton {ComboHeavy += 1;}
- break;
- }
- break;
- }
- //Frame processing
- if Frame+FrameSpeed >= Frames
- {
- switch(Sprite)
- {
- case Idle:
- Frame = 0;
- break;
- default:
- Sprite = Idle;
- Frame = 0;
- Combo = 0;
- State = 0;
- break;
- }
- }
- else
- {
- Frame += 1/3;
- switch(Sprite)
- {
- case Idle:
- //Do nothing
- break;
- case Attack1A:
- if floor(Frame) = 5
- {
- if (ComboLight = 1 and ComboHeavy = 0)
- {
- Sprite = Attack1B;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- else if (ComboLight = 0 and ComboHeavy = 1)
- {
- Sprite = AttackCombo1A1;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- }
- break;
- case Attack1B:
- if floor(Frame) = 6
- if (ComboLight = 1 and ComboHeavy = 0)
- {
- Sprite = Attack1C;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- else if (ComboLight = 0 and ComboHeavy = 1)
- {
- Sprite = AttackCombo1B;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- case Attack2A:
- if floor(Frame) = 4
- if (ComboLight = 1 and ComboHeavy = 0)
- {
- Sprite = AttackCombo2A1;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- else if (ComboLight = 0 and ComboHeavy = 1)
- {
- Sprite = Attack2B;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- case Attack2B:
- if floor(Frame) = 4
- /*if (ComboLight = 1 and ComboHeavy = 0)
- {
- Sprite = AttackCombo2B1;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- else */if (ComboLight = 0 and ComboHeavy = 1)
- {
- Sprite = Attack2B;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- case AttackCombo1A1:
- if floor(Frame) = 7
- if (ComboLight = 0 and ComboHeavy = 1)
- {
- Sprite = AttackCombo1A2;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- case AttackCombo2A1:
- if (floor(Frame) = 4 or floor(Frame) = 5 or floor(Frame) = 6 or floor(Frame) = 7)
- if (ComboLight = 1 or ComboHeavy = 1)
- {
- Sprite = AttackCombo2A2;
- Frame = 0;
- ComboLight = 0;
- ComboHeavy = 0;
- }
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment