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 block and send a screenshot.
What? Wdym
On
the code i gave you alters the ,
, and
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
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
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?