Is it possible to make a variable that transists through scenes?

So i'm making the news page, and all the articles run on repl servers which is fine, but the article that is going to open when a button is pressed is stored in a variable, and the article would open in another scene. is there anyway to get this variable to works with this other scene as well, or are all variables stuck to their respective sprite's scene

Variables are local to scenes, but when you switch scenes you can broadcast a message to the new scene. (Click the right arrow on the SWITCH TO SCENE block.)

thanks bh

wait how would this help me take the variable's value to the next scene? all i really need is to send the value there

Just do this in the other scene:


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