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.

Code Snippets / For beginners: A first person shooter engine, fully compatible with collision, jumping and gravity..

Author
Message
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 19th Sep 2004 22:18
ive looked on your website models look nice !!

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
granada
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 19th Sep 2004 22:30
Thanks thats where all my time goes,Testing DeleD im'e trying to find time to play with dark basic

dave

Windows XP Home 2002 Service Pack 1,1AMD Athlon(tm)XP 3200+ Barton 2.20 GHz ,1 GB of RAM
NVIDIA GeForce FX 5600 256MB DDR
http://www.granadagames.com/
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 19th Sep 2004 23:30
you, a newbie!?!?! you joined the forum in 2002..

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
granada
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Sep 2004 00:32
Yea i brought the very first version of dark basic that came out and kept upto date,just havant had time to play with it a lot trying to find time now .Thanks for putting the time into this i will use it to learn from

dave

Windows XP Home 2002 Service Pack 1,1AMD Athlon(tm)XP 3200+ Barton 2.20 GHz ,1 GB of RAM
NVIDIA GeForce FX 5600 256MB DDR
http://www.granadagames.com/
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 20th Sep 2004 01:07
I think the editor would rock if you could place AI characters! maybe give them a few pre-made attack styles, such as bullets, or a proximity type damage, or the user can just code in his own attack style.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Dot Merix
20
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 20th Sep 2004 03:11 Edited at: 20th Sep 2004 03:15
Hey Granada.. I noticed you said to use the models freely on your website and such.. what about the textures donated by Werner..

Would i need to put you guys in credits anywhere, link to your website.. or are in both cases, fully useable in any situation? (ie.. Royalty free, no strings attached)

Thanks.. Models and textures look nice

- Merix
granada
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Sep 2004 03:35
Werner told me the textures are Royalty free,so are my models

Quote: "Would i need to put you guys in credits anywhere, link to your website.. or are in both cases, fully useable in any situation? (ie.. Royalty free, no strings attached)"


No you dont have to,but it would be nice
dave

Windows XP Home 2002 Service Pack 1,1AMD Athlon(tm)XP 3200+ Barton 2.20 GHz ,1 GB of RAM
NVIDIA GeForce FX 5600 256MB DDR
http://www.granadagames.com/
Dot Merix
20
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 20th Sep 2004 03:47 Edited at: 20th Sep 2004 03:56
Cool, thanks. I'm actually making a couple little parts of levels using the textures (might even try the prefabs sometime).. So if i put them up for people to use or whatever i just wanted to make sure that it was ok first.

http://members.shaw.ca/creeo/unfinishedlevelone.JPG

Something i made in like, 4 minutes. Not done.

- Merix

WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 21st Sep 2004 03:14
pretty nice map

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 23rd Sep 2004 11:05
hey jopie can u also make a 3rd person engine like u did a first person shooter engine ???

Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 23rd Sep 2004 23:47
sure

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
gothboy 101
19
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 24th Sep 2004 08:27
could this be formed into a action rpg? and is there going to be an enemy in this code?

www.dragonseige.tk or soon to be www.dss.tk
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 24th Sep 2004 23:26
maybe, not sure

Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 25th Sep 2004 07:56
Quote: "hey jopie can u also make a 3rd person engine like u did a first person shooter engine ???"


Here ya go!



Do you need a complete FPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
gothboy 101
19
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 25th Sep 2004 09:28
Jopie dopie your dang smart (its sorta scary

www.dragonseige.tk
http://dragonseige.tk
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 26th Sep 2004 00:00 Edited at: 26th Sep 2004 00:02
LOL

thanks, but the collision idea is very simple:

move an object on x
check the collision x
if there is collision, place it back
move an object on z
check the collision z
if there is collision, place it back
move an object on y (jumping and gravity)
check collision
if there is, place back

So simple But thanks for your feedback

But there are still some bugs, you can get stucked etc.. im working on them

Do you need a complete FPS or 3rdPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
gothboy 101
19
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 26th Sep 2004 04:30
cool

www.dragonseige.tk
http://dragonseige.tk
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 26th Sep 2004 05:06 Edited at: 26th Sep 2004 05:08
alright, i've finished a very small libary with collision commands.



move_player_with_collision(objectnr,angle#,speed#,jump)
objectnr= the number of the object
ang# = the angle, the direction that the object should move
speed# = the speed
jump = if you set this to 1, you'll be automaticly able to jump with the spacebar.

move_aiplayer_with_collision(objectnr,ang#,speed#,jump)
almost the same as above, only you cant let the object jump with space, if you set jump to 1 you tell the object that it must jump if it cant get up a wall, so it automaticly jumps on it, if it cant walk on it. (sorry my english :S )

move_player_on(axis$,step#,objectnr)
axis$ = if you enter "x" it will move the object on the x axis, same for y and z
step# = howfar
objectnr = which object.

wsda_player_with_collision(objectnr,colang#)
Control an object using the wsda keys and space to jump.
colang# = the direction of the object.

Do you need a complete FPS or 3rdPS engine ?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 26th Sep 2004 12:03
So we stick that nifty function in our code, and voila we now can use those 4 powerful new commands?

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Kohaku
19
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 26th Sep 2004 21:13
Thats great work Jopie dopie.

Absent.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 26th Sep 2004 21:30 Edited at: 27th Sep 2004 03:17
yes.. but only one problem.. I haven't figured out how to create collision with .x or .3ds models, in theory it should work.. but it doesnt :S. The best way to create a level to use with my libary:

1. make a level with carto graphy shop or an other 3d app
2. make a level editor (only cubes), you place the cubes or boxes on the edges of the level.
3. load your .x model and level from your level editor.

I'm testing it now with dbc, maybe works it directly there with .x models.



Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Kohaku
19
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 27th Sep 2004 01:11
Well, don't know if you know any of the following, but when you call polygon collision checks in DBP, the second objects collision is taken as a sphere, even if that was set to polygons aswell.



Another thing to think of is that csm maps(Cartography shop maps) load every part that constructed the level as individual objects(this is via APEXnow's plugin). So using this, you would be able to set the collision for every object within the map.

And if I'm wrong about the above, or it doesn't help at all, or you know this already, then please don't hurt me.

Absent.
aks74u
19
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 27th Sep 2004 13:55
hey this is cool...keep it up man!

Over And Out.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 27th Sep 2004 21:59
how does it work ??

du u use the mouse to rotate the camera around the object and the arrow keys to move ????

ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 27th Sep 2004 22:00
i don't know cause my parents messed up my version of dbp

Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 28th Sep 2004 10:40
If you can get .x and .3ds collision working, this will be a full package! Great work!

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 4th Oct 2004 00:21
hmmm.. it still doesn't work But it works with Aura's idea so you can use it that way.



Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 4th Oct 2004 00:44
Quote: " i don't know cause my parents messed up my version of dbp"


plz answer

Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 4th Oct 2004 03:03
i dont know what's wrong with your dbp..

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 5th Oct 2004 21:35
what did they do then?

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 6th Oct 2004 07:02
forget it i had to do some fixing to my pc so now its fixed

ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 8th Oct 2004 21:27
hey jopie have u played splinter cell ??

if u have, can u make an engine with only the camera movements with collicions plz ??

Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 9th Oct 2004 06:45
Ok..

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 10th Oct 2004 03:41
Hey Jopie, I'm working on something small because I am bored and I can't work out the moving in your game, so could you post some code so the player can strafe with the left and right arrow keys?

Got anime?I do.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 10th Oct 2004 23:57
yo anime i like ur new sig.......anb btw didn't that kid die in the end ??

Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 11th Oct 2004 03:21
@anime: you can strafe with the keys a and d..

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 11th Oct 2004 07:04
I knew that Jopie Dopie, it's just I don't understand the code for it, and also the code for jumping wasn't clear as I could use them in my small little fighting game based off Shaolin Soccer.
@AZP, no . Naota survives in FLCL.

Got anime?I do.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 11th Oct 2004 09:13
ok

Game Freak10K
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 13th Oct 2004 04:36
J.D, your engines working great and I wanted to know if you could make a few modifications to the program. My programming skills are poor and it is your engine so you understand best how to change it. Could you code in some of these things?
Doors that open (like in Doom)
Switches
Keycards
Switches that end levels
A system that can load Matedit levels
If this is at all possible, it would be great if you could add this to your engine, if not.....well you still got a cool engine

Comics and Games-Bread and Butter.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 14th Oct 2004 05:00
I'm sorry game freak, look at the thread.. collision engine. It isn't a full game engine you must code some things by yourself

sorry!

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Game Freak10K
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 14th Oct 2004 09:39 Edited at: 14th Oct 2004 09:41
awwww, you not gonna add anything else? Well could I take your engine to the team request forum? Dont worry your name is glorified at the top of the code so everyone knows its yours

Comics and Games-Bread and Butter.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 14th Oct 2004 10:07
...cool

Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 15th Oct 2004 21:26
Thanks game freak

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 9th Nov 2004 08:24
so have u made any updates ?


ALPHA ZERO PRODUCTIONS
NEW WEBSITE ONLINE
Marvey
21
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 14th Nov 2004 00:58
Good job Jopie dopie amazing work! Thx For sharing
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 14th Nov 2004 01:45
Quote: "Good job Jopie dopie amazing work! Thx For sharing "


Thanks for your comment !

Quote: "so have u made any updates ?"


No, i didn't made any updates. I'm not going to update the engine anymore. Maybe later, when i start developing another collision/game engine .



need help with programming?
Add me to your msn
Freakill
19
Years of Service
User Offline
Joined: 28th Nov 2004
Location:
Posted: 29th Nov 2004 06:48
Jopie dopie thanks for the snippet, I'm new in programming and it is really helpful to get introducet to DarkBasic and test my 3D models And are you sure you don't want to add more things to the snippet?

This could have been an intelligent sentence.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 2nd Dec 2004 08:34
hey jopie long time no c
i think the snippet can be better


ALPHA ZERO PRODUCTIONS
NEW WEBSITE ONLINE
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 3rd Dec 2004 10:01
Quote: "i think the snippet can be better"


A little rude wasn't that? The guy didn't even have to make the snippet, or release it to the public, he did a good job I think, way better than I could do thats for sure.

Guns arnt the problem, people are the problem, shoot all the people and guns arnt a problem anymore.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 4th Dec 2004 19:01 Edited at: 4th Dec 2004 19:04
Quote: "And are you sure you don't want to add more things to the snippet?"


No , I'm making a new collision system, but with the nuclear glory commands. But MUCH easier!!

I'm making functions like this one:

make_collision_cube(objnr,scale,type(1 or 2, level or moving obj))
This command will make a cube with ng collision on it, so you don't need to code all the nuclear glory commands (. I'm going to make this with all the primitives. Box, cone etc.

So when this is finished you will be able to use your own 3d models .

Here is a little example as it will look:





need help with programming?
Add me to your msn

Login to post a reply

Server time is: 2024-05-03 09:35:38
Your offset time is: 2024-05-03 09:35:38