Issue with drag (Video Added)
fullviewmedia
Member Posts: 92
Hi All,
I have a large scene (2048 x 1536) and I want to navigate is using a draggable actor within a box in the corner of the screen. The box and draggable actor are on a layer called HUD.
I also have other actors which are draggable and they work fine until I move the camera right or up away from the initial screen, then can then only be rotated.
Hope the video helps
Thanks
John
I have a large scene (2048 x 1536) and I want to navigate is using a draggable actor within a box in the corner of the screen. The box and draggable actor are on a layer called HUD.
I also have other actors which are draggable and they work fine until I move the camera right or up away from the initial screen, then can then only be rotated.
Hope the video helps
Thanks
John
Comments
Are you using an offset to the position of the draggable actors?
I think (means im not sure)
That when you have a big screen , and you drag actors around it you need to add some offset - something like this:
in you draggable actor create 2 self attribute - "real"
1) offsetX
2) offsetY
Then when you have a rule "when touch is pressed" do like this
change self.offsetX to "touch1X - SELF.position X"
change self.offsetY to "touch1Y - SELF.position Y"
And below it have the constrains:
constrain PositionX to touch1X - self.offsetX
constrain PositionY to touch1Y - self.offsetY
By the way this method also fixes the "snap to finger" when you drag an actor , gives you a smoother touch.
tell me if that fixes the issue for you..
Roy.
(another option is to post am image of your dragging/spinnig rules)
Roy.