NightMusic
Active member
Please help me. I'm having trouble. I made a change attack to stop script but I want to destroy the weapon as well.
I created a melee weapon in object #$01
i made it purposely not destroy and stay on screen
I want to destroy it when the player releases the attack button
below I have inserted my script.. It currently returns the player to their idle when i release B button...
I didnt add the destroy object for the player melee (object #$01) because i forgot how to call it to the accumulator or something to destroy it.
Please and Thank you for helping me.
I created a melee weapon in object #$01
i made it purposely not destroy and stay on screen
I want to destroy it when the player releases the attack button
below I have inserted my script.. It currently returns the player to their idle when i release B button...
I didnt add the destroy object for the player melee (object #$01) because i forgot how to call it to the accumulator or something to destroy it.
Please and Thank you for helping me.
Code:
TXA
STA temp ;; assumes the object we want to move is in x.
GetActionStep temp
CMP #$05 ;; Attack Action;;
BEQ +isAttacking
RTS
+isAttacking
ChangeActionStep temp, #$00 ;; assumes that "walk" is in action 1
;arg0 = what object?
;arg1 = what behavior?
RTS