so I've tried multiple things to get my controls acting right but to little avail. ..
I'm not sure if I'm using the wrong variables or what....
my logic is basically as follows :
lda on Ground
CMP attacking
bne canmove
CMP walkState
beq canMove
CMP jumpstate
beq canMove
canMove
movePlayerForward
cantMove
face Direction
now this is the code I'm writing in my walk right/left scripts.
I'd assume in my jump script I'd have to add in a clause like :
cmp attacking
beq attack
change Object State #$02 (jump animation )
attack:
change Object State #$03 (attack animation )
thing is, his do I set the variable for attacking if no such variable exists ?
in the melee script it only has meleeCreated and canAttack...should I use one of those ?
am I still doing this totally wrong?
I'm just trying to get character to be able to move if it's attacking and jumping but stand still if it's on the ground...
sorry for the redundancy of this topic. ..
I'm not sure if I'm using the wrong variables or what....
my logic is basically as follows :
lda on Ground
CMP attacking
bne canmove
CMP walkState
beq canMove
CMP jumpstate
beq canMove
canMove
movePlayerForward
cantMove
face Direction
now this is the code I'm writing in my walk right/left scripts.
I'd assume in my jump script I'd have to add in a clause like :
cmp attacking
beq attack
change Object State #$02 (jump animation )
attack:
change Object State #$03 (attack animation )
thing is, his do I set the variable for attacking if no such variable exists ?
in the melee script it only has meleeCreated and canAttack...should I use one of those ?
am I still doing this totally wrong?
I'm just trying to get character to be able to move if it's attacking and jumping but stand still if it's on the ground...
sorry for the redundancy of this topic. ..