Banner
Views: 826,921,041
Time:
27 users online: Amine Retro, AnasMario130, BabaYegha, Bernardo, chickaDEE Magazine, ChrizStylez, codfish1002, GbreezeSunset, Guinholuck, hapsell92, Infinity, kamekku14,  KevinM, Kingshadowraze, Kr00mmi, levelengine, Luigi-San,  Maarfy, MaximumA1, Miku, Pizzabusive, Raymondsze, Sarsath, TheRealCatsup, Ultima, xamexer, xfix - Guests: 104 - Bots: 119 Users: 44,190 (2,520 active)
Latest: MaximumA1
Tip: Always check for updated files in the database by sorting them by "Date" in the various sections.Not logged in.
Quiet Water by Meirdent
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Quiet Water by Meirdent
Pages: « 1 »
File Name: Quiet Water
Submitted: by Meirdent
Authors: Meirdent
Type: Level, Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This code will make the current music's volume quieter while Mario is in water, and reverts back to normal when he's not.



AddmusicK is needed to insert the two included sound effects. This code will not work without them!



Demonstration Video
Screenshots:
Exiting level while underwater doesn't resume volume. And it doesn't matter if in water or not anymore.

And comparisons you have could use optimizations:

Code
	LDA $75			;check if mario...
	CMP #$01		;is swimming
	BEQ swimming		;if so, branch


can be

Code
	LDA $75			;check if mario...
	BNE swimming		;if swimming, branch


and

Code
	LDA !Trigger|!addr	;check trigger to make sure the
	CMP #$00		;quiet volume sound doesn't play multiple times
	BNE return


can be

Code
	LDA !Trigger|!addr	;check trigger to make sure the	
	BNE return		;quiet volume sound doesn't play multiple times


since you're checking flags, they can be either 0 or anything else. if you want to check if flag is zero, just having BEQ after LDA is enough (branches on zero), and if non-zero - use BNE (branches on non-zero value)
Pages: « 1 »
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Quiet Water by Meirdent

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 14

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy