View Single Post
  #5  
Old 01-19-2002, 10:23 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
OMG please make a better onwall-check X_x

example:
NPC Code:

for(i=0;i < 4; i++){
if(keydown(i)){
for(m=0;m < 2;m+=.05){
if(!onwall(playerx+1.5+vecx(i),playery+2+vecy(i)){
playerx+=vecx(i)*.05;
playery+=vecy(i)*.05;
}
}
}
}



not very good but it's a complete movement-script...
__________________
No Webhost at the moment
Reply With Quote