Valhalla Legends Forums Archive | Battle.net Bot Development | Diablo II: Location Unit Conversion

AuthorMessageTime
Win32
I've reached the daunting section of collision detection in my D2GS project. Now, I have the problem that object velocity (such as missiles/players) is measured in pixels / frame.

How am I to convert pixels to object x/y locations? Or simply, what x number pixels equals the distances between object x/y's?


Thanks :)
July 25, 2007, 6:12 PM
raylu
Stand on one side of the screen, cast on the other, time it, determine number of pixels, divide, round :P
July 30, 2007, 12:51 AM
ShadowDancer
each x/y location represents a tile, each tile haves a static amount of pixels, i dont remember well but it can be 16*16.
July 30, 2007, 6:13 AM

Search