red moon
Member
Hello,
I added the Ammo based on Dale's ammo script for ammo power which works great but I cannot figure out if the sound for the pickup should be placed in the "Powerup_ChargeAmmo.asm" script or somewhere else.
I added the Ammo based on Dale's ammo script for ammo power which works great but I cannot figure out if the sound for the pickup should be placed in the "Powerup_ChargeAmmo.asm" script or somewhere else.
Code:
;;; Charge the weapon / Ammo
;;; works with HUD variable HUD_myAmmo.
LDA #PLAYER1_MAX_AMMO
STA myAmmo
;;; we also need to set up the routine to update the HUD
;; for this to work right, health must be a "blank-then-draw" type element.
STA hudElementTilesToLoad
LDA #$00
STA hudElementTilesMax
UpdateHud HUD_myAmmo
;PlaySound #SND_AMMOGRAB
skipGettingAmmo:
RTS