Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

+ SE to lambchops "super-simple splash screen"?

I'm using Lampchops "super simple splash screen", which shows two splash screen before the titl. During the second screen, I'd like to play a sound effect that then turns off along with that screen. I'm sure its a fairly simple edit, but I'm useless at this stuff. here's the script. (I hope its ok, posting the script.) If not feel free to remove it.

Code:
#------------------------------------------------------------------------
# Show two splashscreens when your game loads
#------------------------------------------------------------------------
class Scene_Splash
  
 #--------------------------------------------------------------------------
 # â—
 
Sound effects only play once.

right after, "when 1",  add

if @n == 0
  Audio.se_play("Audio/SE/my_sound_effect", 80, 100)
end

You can change the 0 to another even number if you want a little pause before it plays.

If the Sound effect is too long. Add  Audio.se_stop  right after "when 0"

Be Well
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top