nothing says "I'm a total noob to this language " like not being able to write a freakin' conditional that would be cake in any other language. ..
I've Been working for days trying to tweak a castlevania /ninja gaiden/typical action platformer melee script and I've got most of it working except one last annoying problem. ... which I could solve. .. in any other language.
here's what I got:
cmp #$03 ; attacking state
Beq cannot move
cmp #$01; walking state
beq can move
cmp #$02; jumping state
beq can move
changeObjectstate....
--------
ok. this works fine, however, when I jump up and attack, I want to branch to the can move state..
normally I'd write it like this:
if (attacking){
if (walking && !jumping ){ cantMove}else {canMove}
basically, how would I translate that logic ?
I've tried
cmp attack
beq cantmove
cmp walking
beq can Move
cmp jumping
beq can Move
cmp attack
and walking
and jumping
can Move
am I totally wrong here ?
I've Been working for days trying to tweak a castlevania /ninja gaiden/typical action platformer melee script and I've got most of it working except one last annoying problem. ... which I could solve. .. in any other language.
here's what I got:
cmp #$03 ; attacking state
Beq cannot move
cmp #$01; walking state
beq can move
cmp #$02; jumping state
beq can move
changeObjectstate....
--------
ok. this works fine, however, when I jump up and attack, I want to branch to the can move state..
normally I'd write it like this:
if (attacking){
if (walking && !jumping ){ cantMove}else {canMove}
basically, how would I translate that logic ?
I've tried
cmp attack
beq cantmove
cmp walking
beq can Move
cmp jumping
beq can Move
cmp attack
and walking
and jumping
can Move
am I totally wrong here ?