![]() |
![]() +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Code Support (https://www.save-point.org/forum-20.html) +--- Thread: ![]() |
Separate Sounds for Menu Scene - Solitaire - 10-13-2025 Hi all! A very happy Monday to you :D I was wondering if different sounds could be specified in the menu scene, and item scene scripts for the cursor, cancel and decision. I don't want to use those specified in the system, and "window selection". I want them to be different than the other generic choice selection boxes in the game, and stuff. I tried copying the SE playing bits from Window Selection, and using them in "Scene_Menu", but they didn't change anything. I even tried copying the whole "Window Selection" script and altering it!! ...But that lead to errors, and probably wasn't a good idea. So I stopped fooling with that ![]() I also tried using this FancyChoices [link] (should be named "FancyKhoices") script from Kyonides, which *seems* like it may use different sounds for the choice options, but when I edited that bit, it didn't change the sounds. Anywho! I hope someone can help :D I can explain more if anything isn't clear. Thank you, to any possible replies <3 ![]() EDIT: Ah! Okay, for some reason it seems that the choices script effects left/right movements, but not up/down ones. EDIT2: I tried to add the call to play the audio for all movements, but now *both* the system audio and my system audio play. Okay, this isn't right I don't think lol EDIT3: AH! I THINK I FIGURED IT OUT! In "window_selectable" under line 140, I just added an "if" statement for the cursor! Code: # Move cursor down And I'll just repeat that for each direction... I hope this won't cause any problems later ![]() RE: Separate Sounds for Menu Scene - DerVVulfman - 10-13-2025 I have you one that might be a little more... fun. Code: # Move cursor down Each time it runs, it checks what type of $scene is running, ergo: when (THIS) ; SE_play this ![]() But the last part of the case block is the 'else' ... in here basically saying "I got nothing else, do the default fx" Do know that your option to change SFX based on the SCENE is interesting, but... You do get the same audio cues in both windows within Scene_Equip, the window where you can see what you have equipped and can remove, and the window at the bottom where you can choose replacements. So let's expand that, shall we???? First, add either: Code: class Scene_Equip Code: class Scene_Equip The 'Right Window' instance variable in Scene_Equip is essentially the selectable display window of what you have equipped. And it is essentially NOT designed to give any information outside of Scene_Equip. For that, you need to have SOME means to read this thing outside of the Scene_Equip class. But with THAT out of the way (and inserted), consider THIS tidbit: Code: # Move cursor down I broke it down in a more plebian style to make it more digestible. Do note in the center area how I added: Code: # We decide if its the gear menu or not This covers the use of SFX that are defined by the $game_system.se_play($data_system.AUDIO HERE) command. You could go more advanced by setting up other SFX outside whats covered in the System class. ![]() |