GUYS ITS POSSIBLE
FluffypoopoLvl 55
- Edited
setKeyValue("key", "value", function () {
}); ```
- Windows
Fluffypoopo what
FluffypoopoLvl 55
where it says key you put what you want the value keyed with
- Windows
Fluffypoopo
what do you mean keyed with
FluffypoopoLvl 55
and Value is where you put the value of the key
FluffypoopoLvl 55
Aw you ruined my very hard-to-understand explanation
- Windows
Ohhhhh
- Windows
wait how do I make it interact with stuff once called back
[WUT] AdamLvl 13
- Windows
-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.
- Windows
[WUT] Adam how
[WUT] AdamLvl 13
- Windows
var score = 0;
function draw() {
getKeyValue("score", function (rec) {
score = rec;
});
}
- Windows
hmm
ASmartCoder changed the title to GUYS ITS POSSIBLE .
personLvl 62
this is literally what went on im my brain when i discovered key values, back when i was important 😪
ackvonhuelioLvl 41
- iPhone
You are still important to us