(Solved) How to have a button in one scene affect another scene?

Hi! I’m very new to GDevelop. I’m making a straightforward game where a player can click on a bug and, after clicking on a specific bug, information will be displayed in a journal. I currently have the journal in a separate scene and blank so that the information will only appear once the button in the first scene has been clicked. The issue with this, however, is that the information object does not show up after clicking the button in the first scene. I’ve read this is because scenes act independently of each other, and I was wondering if there was a way to have scenes interact globally.

Essentially, I would like a button in my forest scene to hide the “inchworm_blank” object and show the “inchworm_info” object in the journal scene. I was thinking of being able to flip through the journal with hide/show layers and then have the blank/info objects appear as the corresponding bug button is pressed in the forest area scene. There is probably a way better way to set up a journal system, so any advice is welcome.

I’m probably making this way more complicated than this needs to be. Thank you for reading :slight_smile: !

Hi,

Scenes do act locally, but that is why there are global variables, such variables can be used outside of the local scene. So if you want some information, to be dynamic outside of your local scene, you need to set the global variable, which will then activate in the specific scene, making what you want. Hope this helps a bit.

Global variables - GDevelop documentation

1 Like

Thank you so so much! I was able to make it work after looking into global variables :-)) !!