The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
Code Snippets / FPS with newton physics

Go to the first page of this board Return to the Forum Menu Post Message
10 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Physics coder

User


Joined: Tue May 25th 2004
Location: United States
Posted: 23rd Dec 2004 18:34     Edited: 23rd Dec 2004 18:44     | link | toggle

I made this from playing around with walaber's fps demo, so a lot of the code is his. Basically, I messed around with the fps demo until it worked on my computer, and so here's what I made (download attachment).

I added 2 sounds: shoot and footsteps. Whenever you move (with WASD) you run, unless you press shift to walk siliently, like in counter-strike.

I made a 3 story room to run around in, with several sets of stairs and shootable boxes, cylinders, and spheres. I wasn't sure how to code the stairs, right now if you walk over something right in front of you, you have an upward impulse, which helps you up the stairs.

As for the shooting, it's practically unchanged from walaber's demo.

Extract the rar to it's own directory, the code and media are included, I didn't include a compiled exe because of the max 1mb file size on attachments.

EDIT: one of the first few lines is a display command, set it to a resolution your monitor supports.

-----------------------------------
HP Laptop, P4 3.0Ghz, 1GB RAM, 128MB Geforce dedicated video RAM, 60GB Hard Drive, 17" bright wide screen.
A.K.A "The Uber Computer"
Back to top
thecomputerworld.net
Download: fps.rar Size: 250192 bytesReport this message as abusive
Spline

User


Joined: Sat Oct 30th 2004
Location: London U.K
Posted: 23rd Dec 2004 23:42           | link | toggle

this is a great demo Physics coder
hope to see more of you work in the future, im hoping to look a the newton physics plugin soon, what a great piece of kit that is

Back to top
Report this message as abusive
Physics coder

User


Joined: Tue May 25th 2004
Location: United States
Posted: 24th Dec 2004 02:12           | link | toggle

Thanks

-----------------------------------
HP Laptop, P4 3.0Ghz, 1GB RAM, 128MB Geforce dedicated video RAM, 60GB Hard Drive, 17" bright wide screen.
A.K.A "The Uber Computer"
Back to top
thecomputerworld.net
Report this message as abusive
Amiga for Ever !

User


Joined: Fri Dec 24th 2004
Location: Cyberspace
Posted: 24th Dec 2004 15:37           | link | toggle

NDB_NewtonCreate ERROR !!
Back to top
Report this message as abusive
punkfan91

User


Joined: Thu Dec 23rd 2004
Location: England
Posted: 24th Dec 2004 18:58           | link | toggle

Have you got the Newton wrapper DLL in the correct folder (DarkBASIC Professional -> Compiler -> plugins-user)? I didn't have the DLL itself when I first tried it, and I put it there (like it says in the readme) and it worked fine!

www.somethingfishystudios.tk
Back to top
Something Fishy Studios
Report this message as abusive
Google Ad
Back to top
 
gbuilder

User


Joined: Mon Aug 26th 2002
Location: New Zealand
Posted: 26th Dec 2004 04:40           | link | toggle

Nice work.

gbuilder.

XP2000, 512mb Ram, 64mb GForce4 MX440 Graphics card, WindowsXP Professional.
Back to top
Report this message as abusive
ALPHA ZERO PRODUCTIONS

User


Joined: Sun Sep 28th 2003
Location: Mom ! I forgot where we live !
Posted: 16th Jan 2005 05:11           | link | toggle

it doesn't work for me

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Back to top
Send AIM user a message
Report this message as abusive
walaber

User


Joined: Wed Oct 22nd 2003
Location: Los Angeles, CA
Posted: 16th Jan 2005 09:09           | link | toggle

Quote: " it doesn't work for me"

really helpful post... what exactly happens? have you installed the wrapper?

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Back to top
Walaber\'s DBPRO games
Report this message as abusive
ALPHA ZERO PRODUCTIONS

User


Joined: Sun Sep 28th 2003
Location: Mom ! I forgot where we live !
Posted: 16th Jan 2005 20:02           | link | toggle

i installed it and your fps demo works but not his.

When i start his the screen is black and the game is not responding.

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Back to top
Send AIM user a message
Report this message as abusive
ALPHA ZERO PRODUCTIONS

User


Joined: Sun Sep 28th 2003
Location: Mom ! I forgot where we live !
Posted: 17th Jan 2005 08:41           | link | toggle

now it works , i also added some effects

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Back to top
Send AIM user a message
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
10 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page