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.

Author
Message
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 22nd Feb 2004 17:56
My problem is that i have made an inanimate object and i want it to say sumthing when i get close to it does n e 1 know how to do this

thx
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 22nd Feb 2004 18:02
A very simple solution would be to create a sphere, which has a radius size of whatever distance you want it to be. Then, check for collision between the sphere, and the character object, and if they collide, make it say whatever you want it to say.

I would be unstoppable if I could just get started...
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 22nd Feb 2004 18:29 Edited at: 22nd Feb 2004 20:08
thx but i dont want to do that
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Feb 2004 01:40
this looks like a double post to me

"eureka" - Archimedes
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 23rd Feb 2004 02:20
distance between the objects = sqrt((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2)

if it's 2d just take out the z section

Login to post a reply

Server time is: 2025-05-23 06:25:12
Your offset time is: 2025-05-23 06:25:12