I still have no idea how to make a value do something, or how to set one.

  • -wyi replied to this.

    -wyi I mean, Key a value using a prompt

    setKeyValue("key", "value", function () {
      
    }); ```
    • -wyi replied to this.

      where it says key you put what you want the value keyed with

      • -wyi replied to this.

        and Value is where you put the value of the key

        Aw you ruined my very hard-to-understand explanation

        -wyi omfg I'm stupid as shit

        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.

          • -wyi replied to this.

            -wyi

            var score = 0;
            function draw() {
              getKeyValue("score", function (rec) {
                score = rec;
              });
            }

            -wyi Well i don't have time at the moment to put up something I may just put up a separate post going over how it works that is if i don't feel like doo doo by then but I'll get around to doing it soon, hopefully you won't mind waiting

            ASmartCoder changed the title to GUYS ITS POSSIBLE .

            this is literally what went on im my brain when i discovered key values, back when i was important 😪

            Chat