.

Mouse based walking

November 28th, 2007 · No Comments

This morning I added the ability to use the mouse to walk around dungeons. This should solve the diagonal movement issues for laptops which don’t have a numpad! The mouse walking is essentially the same as in Ultima7 - To do it I get theĀ  mouse position and I calculate a vector to the avatar in the centre of the screen. Then based on this vector I calculate an angle. And based on this angle I change the mouse cursor to point in the direction that you want to move in. Brillant.

mouse1.gif

Although I do have to make the directional cursors smaller, and I keep wanting to click on the monsters to attack them, diablo style - rather than just walk into them. I’ll have to add an ‘attack’ cursor. Overall I think the interface is begining to sharpen up quite nicely.

Tags: UnderKeep

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment