Hi, i did a thing (Multitouch Snap!)

I tried but look at the previous message

what's the code for it?

(sorry i haven't been responding i've been making tic-tac-toe but bigger)

Wdym

The code for the block or this code

Process.prototype.reportMousePosition = function () {
var world, pos;
if (this.homeContext.receiver) {
world = this.homeContext.receiver.world();
if (world) {
if (world.hands.length < 2) {
pos = this.homeContext.receiver.snapPoint(world.hand.position());
return new List([pos.x, pos.y]);
} else {
var result = ;
for (let i = 0; i < world.hands.length; i++) {
const hand = world.hands[i];
let point = this.homeContext.receiver.snapPoint(hand.position());
result.push(new List([point.x, point.y]));
}
return new List(result);
}
}
}
return '';
};

Process.prototype.reportMouseX = function () {
var world;
if (this.homeContext.receiver) {
world = this.homeContext.receiver.world();
if (world) {
if (world.hands.length < 2) {
return this.homeContext.receiver.snapPoint(world.hand.position()).x;
} else {
return new List(world.hands.map((hand) => this.homeContext.receiver.snapPoint(hand.position()).x));
}
}
}
return 0;
};

Process.prototype.reportMouseY = function () {
var world;
if (this.homeContext.receiver) {
world = this.homeContext.receiver.world();
if (world) {
if (world.hands.length < 2) {
return this.homeContext.receiver.snapPoint(world.hand.position()).y;
} else {
return new List(world.hands.map((hand) => this.homeContext.receiver.snapPoint(hand.position()).y));
}
}
}
return 0;
};

try the tic-tac-toe script pic block and send a screenshot.

What? Wdym

On

The mouse pos works wait I have a idea

the code i gave you alters the tic-tac-toe script pic (1), tic-tac-toe script pic (2), and tic-tac-toe script pic blocks.

if you put two fingers on the screen then tap one of those blocks it should return a list.

the length of the list should correspond to the amount of fingers on the screen, except on iOS.
because iOS is a pain. once a finger has been lifted, a 4 second timer is issued to free the pointer.

You know the compile block when you enable JIT compiler setting maybe if I can manage to get it in I could get the mouse POs block then implement how it works but in the mod

Also in the mod I plan to get a position of hit from ray block but that’s later

have fun

I named it Snappic and I have a logo
521C7344-3FD5-49D0-BC65-47059A1EC92F-removebg-preview

Am I an alien how much fingers do I have???

I think I don’t want it to add to the list I want it to change the list and make the length depending on how much fingers are on the screen

Also by looking at your profile if you were wondering how minecraft works… it uses Java and lwjgl(a framework for graphics kinda like openGL) and minecraft uses a lot of math and mobs use AI and path finding I think and items have NBT data

Also I think the adventure file and the game you made/adventure file is really good

Ummmmmmm so… my code is this


Can you maybe correct it
… that’s the code for the TrackHands block

I think you're reading

the way I did at first, as "multitouch will work only on iOS," but I now think it means "this kludgy iOS workaround will run only on iOS."

Does the finger that taps MOUSE POSITION not count as a finger?