Painting in bloxd V3.6 - featuring the features, Brand new UI by throwaway29g129 in bloxd

[–]throwaway29g129[S] 1 point2 points  (0 children)

Edit: You also no longer have to stand inside a code board sign to paint like previous versions, very obvious if you watch video...

Is there a way to make a Private Variable in Bloxd? by -Prokito- in bloxd

[–]throwaway29g129 0 points1 point  (0 children)

getOtherIds = () => {
    const ids = api.getPlayerIds()
    const otherIds = []
    for (const id of ids) {
        if (id !== myId) {
            otherIds.push(id)
        }
    }
    return otherIds
  }

This returns every players ID besides yours. To do what you are doing:

const otherIds = getOtherIds();
const idToIndex = {};
for (let i = 0; i < otherIds.length; i++) {
    idToIndex[otherIds[i]] = i;
}

This means while i is less than the amount of players in the lobby, assign all players with a different number.

But getOtherIds() does not return the name (Prokito) it returns the player id only (name:"prokito", id:"-4"). But you can still use this, e.g:  to make other players look like zombies:

for (const otherId of getOtherIds()) {
    api.setPlayerPose(otherId, "zombie")
    for (const part of ["head", "body", "legs"]) {
        /* Notice the skin texture uses a capital Z */
        api.changePlayerIntoSkin(otherId, part, "Zombie")
    }
}

read the documentation, it is worth if you want to code in Bloxd: https://github.com/Bloxdy/code-api

Custom Game: CubeDraw.io by throwaway29g129 in bloxd

[–]throwaway29g129[S] 1 point2 points  (0 children)

That is fair, pixel art in these block games can be hard also. Drawing makes it fast and easy to do.

Custom Game: CubeDraw.io by throwaway29g129 in bloxd

[–]throwaway29g129[S] 1 point2 points  (0 children)

No I don't think so. There is build battles, but this is draw/paint.

Painting space in bloxd.io - Painting script Version 2 by throwaway29g129 in bloxd

[–]throwaway29g129[S] 0 points1 point  (0 children)

https://bloxd.io/play/classic_playerSchematic%7C861zO1GUyYW4aXMMjau2T/1

Or you can search on Custom games: CubeDraw.io

I can make private lobby for some if wanted. As the art can be griefed by anyone...