sound for ammo

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.

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
 

Attachments

  • soundammmo.jpg
    soundammmo.jpg
    197.6 KB · Views: 394

dale_coop

Moderator
Staff member
Yes, in that script, it's the right place... just uncomment (remove the ";" before) the line 14...
like this:

Code:
	PlaySound #SND_AMMOGRAB

And now, it should work :)
 
Top Bottom