Archived

This topic is now archived and is closed to further replies.

Diablo II and 360° movement

This topic is 5178 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
I don''t think it''s 360 degree movement. At best it looks like 40 directions.

Regardless, you just figure out where the mouse is clicked, determine the angle, and then:

myXpos += angleMove[angle];
myYpos += angleMove[angle];

where angleMove is a pre-defined array which says for a given angle, move this much x and y.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you look closely, you''ll see that your character is the only one using a high number of rotated positions. All the enemies, and other player characters use a much lower number of rotations.

I don''t remember precisely how many; it''s been a few years since I last played.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Also each segment of the player character is a seperate depth buffered sprited. The head,torso,ec... are all segemented and rendered in proably 16 rotations per frame of animiation. Perhaps there is some reuse or delta compression to make them all fit in memory.

Once when i was playing diablo, it messed up and make all the characters segment feet. So that''s how i think they do it.

-ddn

Share this post


Link to post
Share on other sites