#✅ | How to make a sound play on launch
1 messages · Page 1 of 1 (latest)
Hi! Please first select which type of question you want to ask:
- "Normal Question" is enough for most questions. If you are unsure, you should choose this mode. It provides quick and accurate answers to your questions and problems.
- "Complex Task" is for very complex questions and multi-step tasks. For example, questions involving complex action script, requirement, or placeholder logic. Normal users will almost never need this. Getting answers takes much longer here.
It is not possible for anybody to send messages in this thread before selecting a mode.
Selected mode: 💬 Normal Question
Yep, the documented way to get sound on launch is to use a Video as your Game Intro 🎬🔊
What the docs say:
- APNGs/GIFs can be used as Game Intro, but they’re just visual
- Video intros support sound
- Native video support requires Watermedia V3 and Watermedia Binaries V3
How to set it up:
- Open FancyMenu’s menu bar
- Go to Customization -> Global Customizations
- Open Game Intro
- Set your intro to a video file
- Adjust the volume and sound channel there if needed
So if you want audio during launch, use a video intro instead of an APNG/GIF 👍
If you want, I can also help you choose the right intro format for what you’re trying to do 🙂
can i set a listener to play an audio when game intro starts?
I can’t confirm a dedicated listener for “Game Intro started” from the docs 😅
What the docs do show:
- Game Intro can be set globally in Global Customizations
- Video intros support sound directly 🎵
- There’s a listener called On Video Playback Status Changed, but it’s documented for video elements / video menu backgrounds, not explicitly for the Game Intro feature
- There’s also On Animated Texture Started Playing, but again, the docs don’t say for sure that it fires for Game Intro specifically
So the safest answer is:
- If you want sound on launch, use a video intro with sound built in
- I wouldn’t rely on a listener for this unless you test it yourself and confirm it works
If you want, I can show you the exact steps to set up a launch video intro with audio in FancyMenu 🎬🔊
how to set up on animated texture start playing audio
Yep, you can do that with the On Animated Texture Started Playing listener 🎧🟢
Basic setup:
- Open Menu bar -> Customization -> Manage Listeners
- Create a new listener
- Select On Animated Texture Started Playing
- In that listener’s action script, add Play Audio
If you want it to play a specific sound file, the Play Audio action uses a JSON value like this:
{"audioSource":"[source:local]/config/fancymenu/assets/example.ogg","soundChannel":"master","baseVolume":1.0}
A couple of useful notes:
- The listener exposes variables like
$$texture_source,$$texture_source_type, and$$texture_will_restart - So if you only want the sound for one specific animation, you can use
$$texture_sourcein a condition to check which animated texture started - If you want the sound to stop later, you can pair it with On Animated Texture Finished Playing and use Stop All Action Audios 🔇
If you want, I can help you build the exact listener script for:
- every animated texture
- one specific FMA/APNG only
- or play a different sound per texture 🙂
how to play specific sound per texture
Yep, the clean way is to branch on $$texture_source inside the listener 😄🎧
What to do:
- Create a listener: On Animated Texture Started Playing
- In its action script, add an IF / ELSE-IF chain
- For each branch, add an Is Text requirement
- compare
$$texture_sourceto the source of that specific animated texture - use equals
- compare
- Inside that branch, add Play Audio with the sound you want for that texture
Example idea:
- IF
$$texture_source= texture A → play sound A - ELSE IF
$$texture_source= texture B → play sound B - ELSE IF
$$texture_source= texture C → play sound C
Example Play Audio value:
{"audioSource":"[source:local]/config/fancymenu/assets/sound_a.ogg","soundChannel":"master","baseVolume":1.0}
If you’re not sure what $$texture_source looks like for your animation, add a temporary Print to Log action with something like:
Texture source: $$texture_source
Then trigger it once and check the log 🪵
If you want, I can help you build the exact IF/ELSE-IF setup for your specific textures.
✅ | How to make a sound play on launch