Hi, i did a thing (Multitouch Snap!)

Well he changed morphic and gave me some code to put in threads.js that makes the mouse Position block report the position of all fingers on the screen but it has a problem on iOS because iOS is a pain he had(I think) to make each HandMorph dissapear after 4 secs and I don’t know if the finger that taps MOUSE POSITION not count as a finger

shouldn't there be a separate block for multi-touch instead? if I want to import my project containing these blocks and touch multiple points on my screen, my program will fail because it wasn't programmed with multi-touch in mind.

Yes that’s what I’m doing

I’m adding a block to track all the hands

Linux, with Linux on my Raspberry Pi that I use as a mobile device.

This should also be possible in vinnilla if you use a big array of sprites/clones across the screen that detect when touched and add/remove their own position from a list when they are touched/released with the hat block

I'm thinking a second sprite wouldn't receive a touch event if the first one was being pressed.

Nope

:slight_smile:
Give it a go then - just see if you can come up with something workable with two sprites

You should be able to do it with only 1 sprite and a ton of clones, it should be as simple as

“When I am clicked, add (position) to (touches)”
“When I am released, delete (index of (position) in (touches)) of (touches)”

And then you position each clone on the screen using the tiles library

I don't think there is a block like that

Well, I'd start off with just two plain sprites to see if it's possible before introducing the complexity of clones

yeah, i meant it as a "kludge to make iOS shut up and work with multitouch."

also, i'm sorry i haven't been on this for awhile, other stuff has been in the way.

but the original idea was that the mouse reporters wouldn't be changed but the when I am clicked event does.

it reports all fingers. on iOS where there is what i like to call ghost fingers. so be weary of that

if Snap! does implement this I would think that there should be another set of blocks. idk if others might agree with that though.

I think finger blocks in sensing could work.

<finger [1 v] down?::sensing>
(finger [1 v] position::sensing) 

You could also put "all" into the dropdown menu to make it return all finger positions (from 1 to 5) or if they are down.

that could work, however the menu would need an implementation somewhere else, such as blocks.js

I’m working on that

ok

your general thoughts on multitouch?