variables like javascript
Russell Wyner
Click the bug icon to the right of any of your variables. The bug icon stands for debugger. That will display the value on your screen by default in the top-left, but you can drag it anywhere.
Francesco Bertelli
Russell Wyner: What I meant was how do I get a value of a variable FROM anywhere like you would do in JS/JQuery?
I want to be able to, say I.m on scene1, and do something like (pseudo-code):
root.scene2.component1.getValue()
so no matter where the variable is located you can get its value
OR
I want to tap a component, and fetch the value of a variable that asdo being set in the root. similarly to JS essentialyis
Russell Wyner
Francesco Bertelli: As far as I understand, you can make variables that can be accessed from any scene, and seperately you can make variables that can only be accessed from the current scene.I just made a little test project where I assign a universal variable to equal a scene variable right before jumping to a new scene, and then assign the scene variable in the other scene to the universal variable on Start of that scene. Hacky, but one way around it. Basically you just need to store the scene value inside a universal variable right before jumping. https://cloud.protopie.io/p/e01b4d8e45?touchHint=true&ui=true&scaleToFit=true&cursorType=touch&mockup=true&bgColor=%23F5F5F5&playSpeed=1&playerAppPopup=true
Francesco Bertelli
Russell Wyner: thanks! I’ll take a look later!! Very helpful thanks