View Single Post
  #2  
Old 08-26-2007, 01:23 AM
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
Well, there's no function for it(see my suggestion thread about onwall3), but the only way to do it is to do something like I did for my lighting script...
PHP Code:
accuracy=.25;
onwall=0;
while (
i<dist/accuracy) {
  
onwall=onwall(x+dx*i,y+dx*i);
  if (
onwall==1) break;
  
i+=accuracy;

This isn't going to be too] tax-worthy on CPU, but a lot of baddies doing it might slow it down... but there's no other way.
Reply With Quote