*****edit *****
Ok. I figured it out.
If you're using sprite weapons, you can animate them or at least choose which frame of character animation to draw them on using the Object_animation _frame variable.. for example;
LDA Object_animation_frame
CMP #$01 ; is it on frame 1 of the attack animation?
BNE done drawing
DrawSprites blah blah
Done drawing:
-‐------original post------
m trying to animate my weapons, which are not objects... problem is, I need to animate them in time with my players attack animation.
I've tried this logic:
Lda #$01
Sta frame
Cmp#$01
Bne frame 2
DrawSprite 1
Lda #$02
Sta frame
Frame2:
lda frame
Cmp #02
Bne frame 1
Drawsprite 2
Am I missing anything here ?
Is there a player animation frame variable I should be using instead?
Problem is I'm only getting one animation frame to pop off...
-------------------
Funny how overcomplicated my original idea was compared to what the solution was.
Ok. I figured it out.
If you're using sprite weapons, you can animate them or at least choose which frame of character animation to draw them on using the Object_animation _frame variable.. for example;
LDA Object_animation_frame
CMP #$01 ; is it on frame 1 of the attack animation?
BNE done drawing
DrawSprites blah blah
Done drawing:
-‐------original post------
m trying to animate my weapons, which are not objects... problem is, I need to animate them in time with my players attack animation.
I've tried this logic:
Lda #$01
Sta frame
Cmp#$01
Bne frame 2
DrawSprite 1
Lda #$02
Sta frame
Frame2:
lda frame
Cmp #02
Bne frame 1
Drawsprite 2
Am I missing anything here ?
Is there a player animation frame variable I should be using instead?
Problem is I'm only getting one animation frame to pop off...
-------------------
Funny how overcomplicated my original idea was compared to what the solution was.
Last edited: