Please help me with the music

Hy everyone, so I have insert music, but when I previewed it from the beginning (from the very first one) it couldn’t turn on (can’t be played), but when I previewed it at the beginning of the scene the music turn on.
do u guys have an idea why this might be happened?

Thankyou :pleading_face: :pleading_face: :pleading_face:

On line 47 you have the volume set at 0 in 5 seconds so the music (if any is there) fades out in 5 and no music sound will be heard until line 55, you turned the volume back up to 80 in 0 seconds that’s why you can then hear music.

volume music # T
The first number is for the volume of the music (#)
The second number is the milliseconds it takes to get to that volume.(T)

So what you have for the first one:
volume music 0 5000
is volume at 0 in 5000 milliseconds
So if there’s music it’ll fade, if there’s no music set before this then this code serves no purpose to be there since nothing’s playing to fade out anyway.

The second one you have:
volume music 80 0
The volume is at 80 in 0 milliseconds so it’ll immediately be at volume 80. When the scene starts.

1 Like

Thank you so much, i’ll give it a try :smiling_face_with_three_hearts:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.