View Single Post
  #2  
Old 02-28-2012, 10:40 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Calculate the angle, move player based on that angle.

PHP Code:
temp.angle getangle(player.other.xplayer.other.y);
player.+= cos(temp.angle);
player.-= sin(temp.angle); 
__________________
Quote:
Reply With Quote