View Single Post
  #6  
Old 03-13-2010, 09:31 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Crow View Post
That box approach is nice, I think I will give that a try in the future.

Edit: I think when rounding the coordinates, though, you are better off using shared.roundto(), and rounding towards 1/16:
PHP Code:
player.shared.roundto(player.x16);
player.shared.roundto(player.y16); 
I had tried rounding to the nearest pixel. However, it doesn't really matter. Rounding to the speed of the player's sliding speed will align them just as properly when sliding around
Reply With Quote