Views: 942,943,292
7 users online: Bensalot, Gamet2004, Hiro-sofT, Jeyson29, JumperTD, S.U, TheRestingBird - Guests: 53 - Bots: 125 Users: 52,436 (2,012 active)
Latest: cyphehjaw
Tip: You can edit the properties of the original sprites using Tweaker.
Not logged in.
Details for Music Volume Changer
SMW Blocks - Music Volume Changer Link - Show random
File Name: Music Volume Changer
Authors: Meirdent
Act As: Any
Includes GFX: No
Description: A block that, when interacted with, will allow the player to increase the background music's volume by pressing up, or decrease it by pressing down.

AddmusicK is needed to insert two included sound effects. This block will not work without them!
See the included readme for more details.
Tags: lorom, music, sa-1, spc700
Rating: No rating
Download: Download - 3.95 KiB
Main: LDA $14 : AND #$01 : BEQ Return
would probably work to make it continuously go up/down
Posted by: TheBiob - | Link
I was gonna reject this but decided against it. The change is way too simple to justify a rejection, anyway.
The main problem would be that you use CMP instead of AND. While by itself it might not look too bad in a block like this, there are occasions where players leave, say, their Y key pressed while pressing up in the block, and it wouldn't work because of you comparing the exact button press of Up/Down. By using AND (or BIT) players could have other buttons pressed alongside those and the block can still do its intended job.
You also can move the Return: label to the second RTL, removing the last RTL to save a byte.
The code can be even more optimized, using X to hold the sound value while A does the button checks - here's how I'd do it.
       LDX #!SFXUp
       LDA $15
       BIT #$08
       BNE Store
       AND #$04
       BEQ Return
       LDX #!SFXDown
       STX !SFXPort

Anyways though, good job with it! Feels kinda weird that the volume does not constantly change volume if I hold the arrow, but whatever, and I couldn't figure out how to do that too anyway.
Posted by:  Erik - | Link

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

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy
  • sm64romhacks