R
Reventador
Guest
Hi all,
I've tried it all and can't get this to work.
I want to create an object underneath each finger held on the screen. On the finger release, I want to destroy that object, just for the finger that's currently 'holding' the screen. I can't for the life of me work this out as GM2 has all these new gesture things with no 'real' documentation.
Anyone know what I am doing wrong.
Step Event:
I've tried it all and can't get this to work.
I want to create an object underneath each finger held on the screen. On the finger release, I want to destroy that object, just for the finger that's currently 'holding' the screen. I can't for the life of me work this out as GM2 has all these new gesture things with no 'real' documentation.
Anyone know what I am doing wrong.
Step Event:
Code:
for (var i = 0; i < 8; i += 1)
{
if device_mouse_check_button(i,mb_left) {
if (!instance_exists(boot[i])) {
//create my object under finger press
boot[i] = instance_create_layer(device_mouse_x(i),device_mouse_y(i),"Instances",oFoot)
}
}
else
{
if !device_mouse_check_button_pressed(i, mb_left) {
if instance_exists(boot[i]) {
//instance_destroy(boot[i]);
}
}
}
}