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 / two First person shooter questions

Author
Message
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 21st Jun 2004 04:53
i have been trying to get bullets into my simple game. i have tried all of the code base and snippets but cant seem to make them work in my game please help me get them into my code.


also static collision boxes are places you cant go in so if i put a cylinder right in the static collision box you couldnt walk through it right?i cant get to grips with that one either.

thx for you time

mulletman47@aol.com
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 21st Jun 2004 19:18 Edited at: 21st Jun 2004 19:20
Here Is The Code For A Basic Bullet...

Type This Into Your Control Code For The Bullet Creation...


Put This Code Near The End Of Your Main Loop To Control The Bullet...


As For The Collision... Try Something Like This...


And To Vastly Improve The Performance Of Your Game, Place This At The Top Of Your Code...


...And This Right Above The "Loop" Command...
Sync

So Your Code Should Look Like This...


I Hope You Understand All That Code. Its not fully tested, but I think it will work... Well... I hope I helped...

Programming isn’t an addiction, its more of a mental and social dependancy.
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 21st Jun 2004 21:57
thx dude!
it works perfectly.

how do i get to look around with my mouse?

mulletman47@aol.com
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 22nd Jun 2004 00:38
Hmmm... Try Something like...(Put It Into Your "Control" Code)


... Also Put The Command "Hide Mouse" at the top of your code so you arn't always looking at the mouse in the center of the screen...

...well... Once again, I hope I helped...

Programming isn’t an addiction, its more of a mental and social dependancy.

Login to post a reply

Server time is: 2024-09-22 14:28:43
Your offset time is: 2024-09-22 14:28:43