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 / bullet theory

Author
Message
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Jan 2005 10:01
ive been hearing questions about shooting guns and such. most code examples i see work, but involve tons of objects being created. while this is a good method, its hell for multiplayer. while i dont know at the top of my head how to shoot bullets, i have a simple method/idea:
load the bullet object and position it in front of the gun, when the fire key is pressed, move it a the maximum distance with the move command, check for collisions and perform the actions based on them, if collision or the went the distance without collision then put it back.
presto! one bullet used. in theory, the gun can shoot and reshoot quickly.

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Jan 2005 10:17
is that possible with dbce? sounds alot like raytracing

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Jan 2005 10:28
ooooo good idea, spazuh!


coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Jan 2005 11:21
you're getin' a credits mention!

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP

Login to post a reply

Server time is: 2025-05-24 17:12:39
Your offset time is: 2025-05-24 17:12:39