I can't seem to get my code to work for a series of punches.
What I want to happen is if you press the key you punch, and if you push it again you follow the basic punch with an additional punch. The way I am doing it right now is by having a counter keep track of what punch I am doing, and using a single animation to store all the punches. If you keep hiting the punch key it'll keep running throw the punches, but if you stop and a certain punch ends it stops the animation. why won't my code work?
If Char_1_Punching=0 And KeyHit(40) Animate Char_1,1,1.25,7,5 Char_1_Punching=1
If Char_1_Punching=1 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>5 Char_1_Punching=0
If Char_1_Punching=1 And KeyHit(40) And AnimSeq(Char_1)=7 Char_1_Punching=2
If Char_1_Punching=2 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>10 Char_1_Punching=0
If Char_1_Punching=2 And KeyHit(40) And AnimSeq(Char_1)=7 Char_1_Punching=3
If Char_1_Punching=3 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>15 Char_1_Punching=0
What I want to happen is if you press the key you punch, and if you push it again you follow the basic punch with an additional punch. The way I am doing it right now is by having a counter keep track of what punch I am doing, and using a single animation to store all the punches. If you keep hiting the punch key it'll keep running throw the punches, but if you stop and a certain punch ends it stops the animation. why won't my code work?
If Char_1_Punching=0 And KeyHit(40) Animate Char_1,1,1.25,7,5 Char_1_Punching=1
If Char_1_Punching=1 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>5 Char_1_Punching=0
If Char_1_Punching=1 And KeyHit(40) And AnimSeq(Char_1)=7 Char_1_Punching=2
If Char_1_Punching=2 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>10 Char_1_Punching=0
If Char_1_Punching=2 And KeyHit(40) And AnimSeq(Char_1)=7 Char_1_Punching=3
If Char_1_Punching=3 And AnimSeq(Char_1)=7 And AnimTime(Char_1)>15 Char_1_Punching=0