Assign sound to objects in all scenes

Hello !!! I have several objects in the menu scene and other scenes, how do I assign sound to them in each scenes?

Hello ! I did it like this, but the sound plays only once, when I click play there is sound but when I go back to the previous scene and click play again there is no sound

Zrzut ekranu 2024-12-02 105432

In sound clicked scene groups there is object play

Hello, if you want the music to keep playing between scene you need to right click on each scene and go to “Scene proprieties”. After that you need to turn off “Stop music and sound at the start of the scene”.

Also, regarding your first question, if you have common events that need to be present on each scene, I suggest you create an “External events” sheet.

Go to the menu and add “External events”. Then link it to one of your scenes (the first one, for example). Then you put all the “general events” you want on all your scenes, on this sheet. (Once this is done, you can delete them from the first scene). Now go to each scene and right-click on the “Add” button. Then choose “Link an external event” and enter the name of your general sheet.

Tell me if everything is clear

Zrzut ekranu 2024-12-02 140402

then I have no idea what to do, let me remind you that I want to assign to several objects in different scenes e.g. “back” click sound , not music

I don’t understand your conditions. You wrote that if settings, music, sound, kszyk, zapytanie and back are clicked at the same time then Play the sound “click2.mp3” ? You need to put a different condition for each object one time on the external sheet, and then link the external sheet to every scene so it does apply everytime and you don’t need to re-write the conditions.

Is it what you are trying to do or am I understanding wrong ?

I thought it would be possible to assign it to every scene at once, for example to “back” click sound, ok, so I’ll have to assign this sound to all objects in every scene ,I am new to gdevelop , thanks

If you create an external event sheet then it still needs to be called from each scene.

https://wiki.gdevelop.io/gdevelop5/interface/events-editor/external-events/

Conditions all need to be true for an action to be triggered. So, in your sheet, all of the buttons would have to be pressed simultaneously.

You could add an OR condition and put the conditions inside it or you could put the objects into a group and use 1 condition with the group name.

https://wiki.gdevelop.io/gdevelop5/objects/object-groups/#object-groups

1 Like

ok thanks to all of you !! there was one problem, not in all scenes I had the same objects so there was no option “click button” so I had to assign in scene groups, in each scene those objects that were in the specific scene and then add conditions and actions, I have a question, should I add a short sound to the exit object?? or leave it without sound? I’m making a mobile game and I don’t know if there are any sounds during exit because I don’t play mobile games anyway :slight_smile: