"a_create_projectile.asm" uses the jump animation?

I finally got my projectile working, but whenever I shoot, my player assumes the jump animation, and I can't shoot until I've moved.
It using the jump animation also means that I can't shoot while mid-air.


Thanks for any help

-Red
 

dale_coop

Moderator
Staff member
You're using the a_create_projectile.asm script? from the adventure module? (I am curious... why not the shootWeapon.asm from the platformer one?)

But yeah, you could totally do that. It uses the Action Step 02, that is you jump. Just modify the script replacing:
Code:
LDX player1_object
 GetCurrentActionType player1_object


 CMP #$02
 BNE notAlreadyShooting
 JMP doneShooting
with:
Code:
LDX player1_object
 GetCurrentActionType player1_object


 CMP #$03
 BNE notAlreadyShooting
 JMP doneShooting

and replacing:
Code:
	ChangeObjectState #$02, #$02
with
Code:
	ChangeObjectState #$03, #$02
(if your attack action step is 03)

And yeah, in that script you can't move and shoot at the same time ;)
 
Thanks again Dale!
I was using "shootweapon.asm" but I couldn't get that to work quite right,
so I switched last night.
 
Top Bottom