Mouse based movement

ssj2_gohassj2_goha Member Posts: 5
edited November -1 in Working with GS (Mac)
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.
image
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

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you mean when the actor thats moving to the mouse gets to the edge of the original scrren origin he stops?

    try adding a offset for the camera

  • ssj2_gohassj2_goha Member Posts: 5
    Thank you! I knew it was something stupid like that...
Sign In or Register to comment.