How can I send a variable over from one scene to another. Like that value, and pick it back up when the new scene receives it?
I tried using like variables and stuff but I can’t figure out a way to use the when I receive block because it only has the flag and other broadcast and I cant type it plus if I use the flag I need data to differentiate it from another flag call.
here’s an alternate solution to bh’s that automatically sends all of the sprite’s variables and their values, and then tells the sprite in the second scene to recreate them (without needing custom blocks)
The party line around here is that you should use the libraries rather than call the EXTENSION block directly, because we promise to try to keep the library behavior uniform as Snap! changes, but we don’t make any promises about the EXTENSION block’s behavior.
The solution I ended on was switch to scene (2) and send hello for example. With data (variable). Then on the other scene I said When I receive hello (data) set hi to data. All names and stuff can change.
What’s the point of dynamically creating variables at runtime after switching scenes???
Will those variables be accessed only through metaprogramming?
Why not just use vanilla to set already existing variables?