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 / Bullet coming from different places...

Author
Message
Dark Flame
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: England
Posted: 8th Mar 2005 05:04
Hey

Im currently creating a FPS and the code to shoot a bullet works fine as the game loads up and the bullet shoots exactly from the end of the muzzel, BUT when i move the mouse and aim somewhere else the bullets positon changes so it doesnt fire or of the muzzel...is there anyway to lock the bullet on..my code for the bullets bollow.

Thanks

WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 8th Mar 2005 08:04
Do you have a crosshair for your gun? Because If you have one, it will be more realist to start the bullet from the crosshair. I have looked to your other thread and I assume that its from the DBP tutorial. I so,
you could position the crosshair like they do and position the bullet from here like that

So the bullet will alway's start from the crosshair. But for the bullet start from the gun, sorry, I never complete this thing.


Hope it helped either.

Windows XP,pentium IIII, 1,9 MGZ, 256 mb memory, 128 mb video card ATI Radeon 9200 se s80 'sett squadron back on the assault'
Dark Flame
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: England
Posted: 9th Mar 2005 04:24
Worked a treat! Thanks mate, looks good and everything but the round doesn't come from the muzzle. Any idea of how to do that?

Thanks

Login to post a reply

Server time is: 2024-11-13 20:08:39
Your offset time is: 2024-11-13 20:08:39