Advertisement

question about moving player/enemies?

Started by July 18, 2002 08:18 PM
0 comments, last by brewknowc 22 years, 3 months ago
Hi, i''m working on an isometric rpg, and the movement of my character is very jerky (especially when pathfinding) because when he needs to go diagonally, i just add to the x and y value (which makes him move at a 45 degree angle) this looks very fake especially when he goes around objects. I was wondering what most people use to get the player to go from tile to tile. Do i calculate the vector and then move the character? I''ve searched through some of the articles and posts here, but can''t seem to find an answer. Thanks
- Free Your Mind -
I sometimes use this method: give each character a velocity and a degree of rotation. Do a bit of trig to determine the changes to x and y position. Then just limit the degree of rotation to, say, 0,45,90, etc. This makes the diagonal motion more realistic.

Roo, Pantheon Software

This topic is closed to new replies.

Advertisement