Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / need help finishing a small fps demo

Author
Message
redeye
21
Years of Service
User Offline
Joined: 30th Oct 2003
Location:
Posted: 12th Jun 2004 11:59
ok iv done a little bit more in dark basic classic now iv programed a matrix with walls(because i havent got a world builder) and iv programed a fps style thing with gun modle from dark matter and a zombie the zombie is just in a set position so it dosent move but now im stuck there are no more tutorials on stuff like makeing monster walk after the player and atacking with his hands (iv got the animation in dark matter) but my main problum is i dont under stand collion plz could some one help me finish this little demo plz

every thing that has a begining has an end
Alasdair
21
Years of Service
User Offline
Joined: 17th Jun 2004
Location:
Posted: 17th Jun 2004 23:55
Try pointing the zombie at the players position and then moving it
making sure it stays on the ground by keeping its Y coordinate at zero. When it gets use this equation to work out the distance using pythagoras between it and the player

sqrt((X# - eX#)^2 - (Y# - eY#)^2 - (Z# - eZ#)^2)=distance

(i am not that good at maths so i hope its right)

if its close enough, get it to attack!

Ireland!!!!!!!

Login to post a reply

Server time is: 2025-06-29 13:26:27
Your offset time is: 2025-06-29 13:26:27