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.

DarkBASIC Professional Discussion / How would I go about making crosshairs?

Author
Message
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 22nd Nov 2003 23:36 Edited at: 22nd Nov 2003 23:39
I need crosshairs for a 3rd person game. I can't use the lock object command because I want the crosshairs to collide with objects (but i think i can do that). My question is how do I make a plane that always faces the camera and always stays about 100 notches away from the center of the camera (the camera is controled by the mouse).

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd Nov 2003 01:32
Wrong way I'm afraid. Try following which uses a sprite as crosshair and new pick object command to work out what object is under mouse pointer. It will also give you distance to object and intersect world position. Perfect for a fist person shooter!




Boo!
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 23rd Nov 2003 04:16
thx

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4

Login to post a reply

Server time is: 2026-07-26 15:30:51
Your offset time is: 2026-07-26 15:30:51