See if you can do this! moving groups around a stack
Posted: Tue Jun 25, 2013 2:45 pm
So i got a really basic yet really good question. See if you can do this!
What I am trying to do is have the user drag one object and as that object moves horizontally, a separate group moves accordingly. For the sake of this example, It can be as simple as moving a red square with your finger and having a group of blue squares move accordingly to the red square. When I say accordingly i mean if you drag the red square over 30 pixels the group with the blue squares will move 30 pixels in the same direction at the same speed.
So looking at the available livecode functions that can be used I think it can be done with: touchmove, mousemove, move, but most likely movecontrol. Although i have not used the movecontrol function before and am not sure how to go about using it. Any insights to how I would go about this would be much appreciated. Also, nothing has been posted yet about the moveControl function so it would be great if someone was able to share their experience. Thank you.
-Will
What I am trying to do is have the user drag one object and as that object moves horizontally, a separate group moves accordingly. For the sake of this example, It can be as simple as moving a red square with your finger and having a group of blue squares move accordingly to the red square. When I say accordingly i mean if you drag the red square over 30 pixels the group with the blue squares will move 30 pixels in the same direction at the same speed.
So looking at the available livecode functions that can be used I think it can be done with: touchmove, mousemove, move, but most likely movecontrol. Although i have not used the movecontrol function before and am not sure how to go about using it. Any insights to how I would go about this would be much appreciated. Also, nothing has been posted yet about the moveControl function so it would be great if someone was able to share their experience. Thank you.
-Will