OK Im trying to drag 2 groups objects to collide using multitouch. But this code appears to select only individual objects.
Can I drag 2 grouped objects at a time?
on touchmove pObjectID, pX,pY
set the location of the target to pX,pY
end touchmove
multitouch drag groups
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: multitouch drag groups
Hi, Im using a mousestilldown handler to drag grouped object.. Sometimes the drag freezes up, yet I can still click and use the other buttons. Restarting the app will start allowing the dragging to continue.
DO I need to change to a touchmove command to fix this problem? If that is the case, am I able to drag an entire group? When I tested it, I could only drag single objects within the group.
Here is the code I am using:
on mousestilldown
set the loc of grp "Dragball1" of grp "3balls" to the mouseloc
end mousestillDown
Thank you, Max
DO I need to change to a touchmove command to fix this problem? If that is the case, am I able to drag an entire group? When I tested it, I could only drag single objects within the group.
Here is the code I am using:
on mousestilldown
set the loc of grp "Dragball1" of grp "3balls" to the mouseloc
end mousestillDown
Thank you, Max
Re: multitouch drag groups
Hi Max,
I think you can use
check "owner" in LC Dictionary
Best regards
Jean-Marc
I think you can use
Code: Select all
on touchmove pTouchID,x,y
put the owner of the target into tGroup
set the loc of group tGroup to x,y
end touchmove
Best regards
Jean-Marc
https://alternatic.ch
Re: multitouch drag groups
ThANKS Jean Mark,
This may be exactly what I need. I'll try it.
Max
This may be exactly what I need. I'll try it.
Max