-
Map movement!
Hi all,
I am currently making a map screen where the player can move between locations by clicking on the desired building and the player object will move to it. I have that part working as planned but my map extends beyond the borders of my screen and so I need some way of scrolling it to see obscured areas.
What I am looking to do is have a system whereby the player holds the left mouse button down and it turns into a hand icon... So far, so good... Then I want that hand to anchor to that spot in the map and scroll the screen as the player moves the mouse.
Can anyone suggest any solutions for this? Im testing a seperate camera object which bounces between the actives but this just seems to judder. :(
-
Re: Map movement!
You can use a similar technique to this, but without the mouse object since you're not dragging the window. All you need is an original X and Y, and then the XMouse and YMouse, and some math :)
-
Re: Map movement!
Thanks for the reply. I have managed to figure it out now. :)