Drag n Drop not constraining to MP x y when background scrolls.
Jaysta
Member Posts: 18
Hi guys,
I have a background that is scrollable and an actor that I can drag and drop, problem is, when I grab actor it only constrains to mouse position x and y when the screen is at its default position.
If the screen scrolls (when touched, it can slide) the actor is not constrained to the mouse properly and gradually disappears, but it works fine if I don't have the screen scroll.
Any ideas?
Thanks.
I have a background that is scrollable and an actor that I can drag and drop, problem is, when I grab actor it only constrains to mouse position x and y when the screen is at its default position.
If the screen scrolls (when touched, it can slide) the actor is not constrained to the mouse properly and gradually disappears, but it works fine if I don't have the screen scroll.
Any ideas?
Thanks.
Comments
This should help
Now I just gotta get the cam moving the same way the actor does when I drag it lol. I grab the actor and go to move it to top right but this movement moves the cam to bottom left.