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 / Aiming Cursor

Author
Message
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 18th Jul 2003 01:15
Does anyone know how to do an aiming cursor. I had one but it just didn't work right. Anyways, im talking about like in a first person shooter, when an enemy gets in the line of fire, to have the cursor turn read. Does anyone know how or have any theories? I'll make sure to include you in my credits if it actually works. I'm posting a new websight for "As the Sun Sets: Sins of the Moon." check out the code box to see the credited people so far!
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 18th Jul 2003 01:15
oh yeah....

--carlitos
lcfcfan
22
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 18th Jul 2003 03:34
Don't Know if it would work but you could just paste a sprite in the middle of the screen or if that fails paste an image on a small 3d object with transparency on and keep it centered to the screen!

Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 18th Jul 2003 04:29
That sounds smart enough to work, lol.
thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx,thnx

-carlitos
The Big Babou
22
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 18th Jul 2003 04:58
1. make a 2 nice crosshair images (different colors), save them as ping with transparency
2. load the images, hide one
3. to position the crosshairs at the center of the screen do this


4. play a little with the intersect object() command to find out whether there is an enemy under the crosshair or not, if yes, "unhide" your hidden one, if not keep it hidden
UberTuba
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 18th Jul 2003 05:00
erm well carltos if u cant figure that one out u should wrk on asmaller project.
Learning Db takes ages. ive only just worked out how to use the
particle cmmands and ive been using db 4 well ovr a yr

Life is a terminal disease.
You never survive it.
Kanzure
22
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 22nd Jul 2003 02:45
Quote: "JonnyB456- helping me on the websight
"

That quote is from the first post's source code box.

*cough* If you were really making a website, you would know "site" is not spelled "sight"...I can't believe you even know HTML then...

~Morph/Kanzure
CodeNation
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 24th Jul 2003 15:43
ummm to darkfluf...

I just wanted to say that im not really a newb. I've been programming for 6 years(1 year was DB). I've made one big project so far...a remake of Ghosts n Goblins and am almost finished with a top gun remake. Also I've started on a smaller project As the Sun Sets(the first sight). I've been have a method worked out, but it doesn't work all the time. I don't mean to be rude or anything, and i know i'm no DB Guru, but it really gets me mad when people say things like that...
--carlitos


http://www.geocities.com/flyingmonkeyc/Sins_of_the_moon.html
http://www.geocities.com/flyingmonkeyc/RetroRemakes.html
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 25th Jul 2003 04:24
Quote: ". play a little with the intersect object() command to find out whether there is an enemy under the crosshair or not, if yes, "unhide" your hidden one, if not keep it hidden"


You might also experiment with object screen commands that may proove faster than object intersection.

To test objects 1-10 for instance.



Pneumatic Dryll
The Big Babou
22
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 26th Jul 2003 02:14
yes even better
Energizer
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 29th Jul 2003 11:25
Hi,hear me out.
I had this problem also and this is what I did
first the mouse movment controlled a simple invisible cube at the farest point of the screen the cube moved according to the x and y axis of the camera.
then I pasted a sprite on the
"object screen x(cube),object screen y(cube)"
that was a 2D mouse represented by a cube in 3D
in order to detect collision with an object I used the intersect object command
and i used the camera position as x,y,z and the cubes position as tox,tot,toz.

Login to post a reply

Server time is: 2025-06-26 12:00:30
Your offset time is: 2025-06-26 12:00:30