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.

Dark GDK / C++ FPS Tutorial

Author
Message
Sausen Kenny
16
Years of Service
User Offline
Joined: 4th Oct 2008
Location:
Posted: 8th Oct 2008 03:18 Edited at: 8th Oct 2008 03:28
If this is a useful tutorial im going to add version 2 of it

just click download...

then open the tut.bmp file to start with.......

Attachments

Login to view attachments
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 8th Oct 2008 19:00 Edited at: 9th Oct 2008 00:51
mkay, looks good, but couldn't u try to make it an .PDT insted?

Edit:
Ofc I mean PDF. Sorry, just a typo, dont kill me cause of that

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 8th Oct 2008 21:20
agreed (assume you mean PDF), and you could also post a version of it on DarkGDK.wikia.com. looking good though. thing that always annoyed me with FPSes was the loading of the level, as a BSP format, but that wasn't covered at all. Other things to include would be how to make an enemies class, and how the weapons hurt them and that sorta thing.
also, dont use bmps. ever. use a JPG or PNG
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 8th Oct 2008 21:54
Quote: "also, dont use bmps. ever. use a JPG or PNG "


PNG FTW. JPEG's suck for all but actual "photos."

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Sausen Kenny
16
Years of Service
User Offline
Joined: 4th Oct 2008
Location:
Posted: 8th Oct 2008 23:01
well, i used paint because its easy to use........ other than
that, i don't know how to create .PDF file.........
ok, ill be releasing v2 - creating AI enemy, how to hit them and how player get's hit by enemy, AMMO/HEALTH GUI, and making terrain

ill be using paint again to make it easy.... hehehe
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 12th Oct 2008 02:11
is that AUG weapon open source? can I use it in my own projects? just cause it has a hand on it and real nice animations :p
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 12th Oct 2008 03:43
Quote: "well, i used paint because its easy to use........ other than
that, i don't know how to create .PDF file........."


Not PDF, PNG: it's an image format like BMP, but takes up less space. It's an option in Paint, even.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 12th Oct 2008 04:52
The tutorial is pretty good, but they way you have it setup it'd be very hard to expand on it too much. It's good for beginning DBP programmers, but if you ever want to create something bigger out of it then you need to introduce UDTs, camera positioning (without control camera using arrowkeys), creating a map, collision, the list goes on. And you'll benefit from coming up with a solid structure for your code. Comment it lots and divide it into parts. Make functions. Stuff like that.

Anyway, keep up the good work.

SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 12th Oct 2008 05:56
If I'm not mistaken, that AUG is from Counter-Strike: Source.


My site, for various stuff that I make.
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 12th Oct 2008 08:06
Quote: "If I'm not mistaken, that AUG is from Counter-Strike: Source."


Huh? You mean to say he jacked the model from Valve?

~~It's not who you are underneath, but what you do that defines you.~~
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 12th Oct 2008 08:10
No. Source uses compiled models.
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 08:31
Even if you did decompile, I doubt it would be in .x format, probably some home-brewed file format just for Valve.

Btw: I was doing this tutorial, and trying to perfect it. Anyone have any idea on how to loop the animation while the key/button is being pressed. I tried using while instead of if, but it didnt work. If you use dbLoopObject like it says, it runs forever, if you use dbPlayObject it runs once.
Dragon slayer
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 15th Oct 2008 01:08
To make a PDF you would need an adobe program for big bucks BUT there is a free program out there called open office. It is a suite of programs, writing program a DTP program (Ithink) math and drawing programs Database etc... you can make PDF's with it. I think the url is www.openoffice.org, if that does not work remember google is your friend, do a google search for open office.

Scott
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 15th Oct 2008 03:31
Tons of programs make PDFs, Adobe didn't make the format, they just made the most common reader.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 15th Oct 2008 03:41
Lol. We were talking about PNG's, not PDF's.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 15th Oct 2008 07:39
Well, we were talking about both PDF's and PNG's.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 15th Oct 2008 22:32
If your not going to, with permission, after you release another, can I improve the format into a forum post and .PDF? Ill of course give full 100% credits to you, just would hate to see a good tutorial go unseen. This board needs MUCH more tutorials. DarkBasic Professional is kicking our asses! LOL.

Good job!

www.Helios-Online.net
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 18th Oct 2008 21:51
Quote: "Even if you did decompile, I doubt it would be in .x format, probably some home-brewed file format just for Valve.

Btw: I was doing this tutorial, and trying to perfect it. Anyone have any idea on how to loop the animation while the key/button is being pressed. I tried using while instead of if, but it didnt work. If you use dbLoopObject like it says, it runs forever, if you use dbPlayObject it runs once."


You can use dbObjectFrame to stop it when it reaches a certain frame.




Or you can use dbObjectFrame()




When you let go of the w key, the guy will stop.

If you press the r key (doesn't matter if it's held in) it will keep looping that object until it reaches frame 195 (done reloading)

This is the way I do it.

Login to post a reply

Server time is: 2024-11-25 06:55:06
Your offset time is: 2024-11-25 06:55:06