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.

Newcomers DBPro Corner / Small sliding collision command libary, great for 1st 3rd person shooters

Author
Message
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 27th Sep 2004 03:58
Hi all,

I've made a 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.

Here is the libary:


Here an example code, how to use:



If you want to read more about it, my old thread:

http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6

cheers

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
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 30th Sep 2004 00:14 Edited at: 30th Sep 2004 01:04
not usefull for anyone ?

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
Programmer Xtreme
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: Wack House
Posted: 30th Sep 2004 09:02
Oh yahhhh! It is scary how good it is...Is it for dbp or dbc or both?

Programmers United-Programming for programmers
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Oct 2004 02:39
it works almost with dbc, some angle problems to fix(wrapvalue).

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

Login to post a reply

Server time is: 2024-11-27 10:38:37
Your offset time is: 2024-11-27 10:38:37