-wyi dang it I still have no idea what i'm doing

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;
              });
            }
            L
            Last Chat :(
            See ya round, people.
            Aug 16, 2024
            T
            t43rew t34t3t45ret 45 e trsdyrt
            wt rtret
            Aug 14, 2024
            general
            Goodbye Gamelab Forum.
            Aug 12, 2024
            Not CDO chat
            yes
            Jul 25, 2024

            Chat

            Welcome to the Chat!

            Please select a channel or DM on the left.
            ;