- Windows
Fluffypoopo nvm
Fluffypoopo nvm
now I set it up for multi-data
Fluffypoopo k..
I still have no idea how to make a value do something, or how to set one.
setKeyValue("key", "value", function () {
}); ```
Fluffypoopo what
where it says key you put what you want the value keyed with
Fluffypoopo
what do you mean keyed with
and Value is where you put the value of the key
Aw you ruined my very hard-to-understand explanation
Ohhhhh
wait how do I make it interact with stuff once called back
-wyi What I usually do is define a variable at the start of the program, and in the draw loop, I have it call getKeyValue
to get... well, whatever you need to get, and then set the variable to the response.
[WUT] Adam how
var score = 0;
function draw() {
getKeyValue("score", function (rec) {
score = rec;
});
}