Mouse based movement
I'm working on an rpg title and I want the characters to move based on were you click the mouse,
As you hold down the mouse button the actor moves toward the mouse pointer. I got this about 90% working but when the screen scrolls (up/down or sideways) the actor stops at the far edge of were the starting screen was.

This is what I have thus far...
I know the problem is probably because the actor needs screen location not scene location....
How do I calculate this???
As you hold down the mouse button the actor moves toward the mouse pointer. I got this about 90% working but when the screen scrolls (up/down or sideways) the actor stops at the far edge of were the starting screen was.

This is what I have thus far...
I know the problem is probably because the actor needs screen location not scene location....
How do I calculate this???
Comments
try adding a offset for the camera