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 / For god's sake, I need understanding, FPS style

Author
Message
Lorraine Evans
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 25th Nov 2004 10:51
Please help me "upgrade" this program, and explain how it's working. I'm not very good.



I would really like some help loading directx file levels, loading 3d guns, particles, and PLEASE GOD rapidfire. Thank you! You're my last hope!
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 25th Nov 2004 11:08
I don't have time to explain the code you have, but I have a rapid fire snippet I developed some time ago.



Lorraine Evans
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 26th Nov 2004 10:20
Thanks loads
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 26th Nov 2004 11:22
EEK! The movement code is way over complicated, there are a few commands that make all that so exremely easy, you can replace all that variable mumbo jumbo with a simple command like...

if upkey()=1
move object 1,1
endif

if downkey()=1
move object 1,-1
endif

if rightkey()=1
turn object right 1,1
endif

if leftkey()=1
turn object left 1,1
endif

Guns arnt the problem, people are the problem, shoot all the people and guns arnt a problem anymore.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th Nov 2004 11:42
Yeah but the idea(I'm guessing) is that it all works smoothly..or something

AKA teh great Pet Rat.
Peace sells...but who's buying??
Lorraine Evans
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 27th Nov 2004 02:06 Edited at: 27th Nov 2004 02:06
What do you mean by move object? The player's perspective is the camera, right?
Clackersmith
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 27th Nov 2004 02:29
Then : Position Camera 0,Object Position x(1),Object Position y(1),Object Position z(1)
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 27th Nov 2004 19:54
flexibility is what
Quote: "variable mumbo jumbo "
provides
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 3rd Dec 2004 23:35 Edited at: 3rd Dec 2004 23:37
I can't run this right now, but here:



That should work, but I'll test it latter

See Ya!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 3rd Dec 2004 23:43
If you want ou can add this too

Put this under "Make Matrix":
Randomize Matrix 1,20

Replace "Cam_YPos#=20" with:
Cam_YPos#=Get Ground Height(1,Cam_XPos#,Cam_ZPos#)+20

That will just make some hills in the matrix and able you to walk over them smoothly, but I can't run anything until later, so if its messed up I'll fix it later.

See Ya!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 8th Dec 2004 21:55
never ran my code, did it work?
And did you find out what you wanted to know because I could add shooting with rapid fire, if you want.
Lorraine Evans
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 29th Dec 2004 09:28
yeah, it worked. THANKS All! And i would like some rapidfire stuff.

Login to post a reply

Server time is: 2025-05-24 07:57:16
Your offset time is: 2025-05-24 07:57:16