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 Discussion / Please help me with various programming issues

Author
Message
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 2nd Apr 2005 08:40 Edited at: 8th Apr 2005 18:37
I am making a game that resembles deus ex and half life. but, not being a real master in the language of dbc, i am having trouble doing the following.

(1) how to create a decent flashlight in dbc just like in halflife (so that point camera here and there flashes a spot to the location).
(2) how to cause an object to go a specific position passing between obstacles without hitting them
(3) how to make the cursor (at the center of the screen) act as a pointer to activate lift buttons, doors, objects etc....
EDIT: (4) how to make a decent mirror

I very much appreciate ANY help

HelloWorld Tommorrow
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 4th Apr 2005 03:36
I forgot to say PLLEEEAASEE (help)!!

HelloWorld Tommorrow
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 4th Apr 2005 19:09
(3) POSITION OBJECT id,x,y,z
(1) You are going to want to look into the Light commands. Basically you position a spotlight in front of the camera and rotate it with the camera. Experiment with the cone angle values to get the desired effect.

Crazy Donut Productions
Current Project: A Redneck game
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 4th Apr 2005 22:21
Thank you BearCDP

Do you have any idea of how to make a cursor on the screen that can activate certain objects when the player's close to them?

Or, how to make blood spurt out and onto the floor when player/enemy get's hit? Again, any help is very much appreciated (and needed!).

Thanks in advance

HelloWorld Tommorrow
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 4th Apr 2005 22:42
with (3) i would more say:
object screen x(id)/object screen y(id)
for ex:

if object screen x(event_id)>310 and object screen x(event_id)<330
if object screen y(event_id)>230 and object screen y(event_id)<250
gosub start_event
endif
endif
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 4th Apr 2005 23:10
Thanks for that

But I've just being faced with another problem.

I made this small movie of the game I'm making (no textures on the objects). But there are some 'wiggly lines' at the edges. Any idea of how to remove that?

HelloWorld Tommorrow

Attachments

Login to view attachments
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 6th Apr 2005 02:48
Can anyone help with atmospheric lighting (that resembles the capacities of CS4) but without using CS4?

HelloWorld Tommorrow
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 6th Apr 2005 07:00
How come when I create more than 10 lights in DBC I don't get any error or anything? Just curious ....

HelloWorld Tommorrow
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 7th Apr 2005 04:27 Edited at: 13th Apr 2005 23:31
My object's faces go all fuzzy - how do I correct this (please )?I've attached a movie.

EDIT: And does anybody have *any* idea of how to do that tilting motion seen in HL 1?

HelloWorld Tommorrow

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-23 11:28:36
Your offset time is: 2025-05-23 11:28:36