Jump to content
  • Advertisement
Sign in to follow this  
zabo

blitz3d fps ai need help!

This topic is 3931 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so how do i create the standard fps enemy ai? i want it so that the enemies will shoot at the player be aware of their environments etc. how do i accomplish this in blitz3d? a sample code or a short explanation would help!

Share this post


Link to post
Share on other sites
Advertisement
Many ways to go about....

Most common would be waypoints, which basically is a dummy node that serves....
this does a better job at explaining:
http://en.wikipedia.org/wiki/Waypoint

A better definition (game related):
http://www.rawcomputing.co.uk/waypoints.html


After you check this out... You can elaborate on precise topics and where you would want to head next!!

Good Luck,

Share this post


Link to post
Share on other sites
Hi zabo!
First of all, you should try to post questions about Blitz3D in the official BlitzBasic forum. You might get more help. ;)
In B3D, you code your ai like in *every* language.
In fact, a *simple* ai is nothing more than a couple of if-statements.
Like:
For ai.TAI = each TAI
if ai.seeplayer = true and ai.range < maxrange then
ai.shootplayer = true
endif
next


Or more complicated with a crate to duck&cover:
For ai.TAI = each TAI
if ai.seecrate(crate1) = True and ai.candosomething = True then
ai.cover(crate1)
ai.candosomething = False
end if


Understood? It's not so much difficult to code a simple ai.
For more understanding, simple ask our good friend google. ;)
Good luck for you!

Share this post


Link to post
Share on other sites
Quote:
Original post by FreakForFreedom
Hi zabo!
First of all, you should try to post questions about Blitz3D in the official BlitzBasic forum. You might get more help. ;)
In B3D, you code your ai like in *every* language.
In fact, a *simple* ai is nothing more than a couple of if-statements.
Like:
For ai.TAI = each TAI
if ai.seeplayer = true and ai.range < maxrange then
ai.shootplayer = true
endif
next


Or more complicated with a crate to duck&cover:
For ai.TAI = each TAI
if ai.seecrate(crate1) = True and ai.candosomething = True then
ai.cover(crate1)
ai.candosomething = False
end if


Understood? It's not so much difficult to code a simple ai.
For more understanding, simple ask our good friend google. ;)
Good luck for you!


i havnt bought the full version yet so i cant

Share this post


Link to post
Share on other sites
Quote:
Original post by FreakForFreedom
Hi zabo!
First of all, you should try to post questions about Blitz3D in the official BlitzBasic forum. You might get more help. ;)
In B3D, you code your ai like in *every* language.
In fact, a *simple* ai is nothing more than a couple of if-statements.
Like:
For ai.TAI = each TAI
if ai.seeplayer = true and ai.range < maxrange then
ai.shootplayer = true
endif
next


Or more complicated with a crate to duck&cover:
For ai.TAI = each TAI
if ai.seecrate(crate1) = True and ai.candosomething = True then
ai.cover(crate1)
ai.candosomething = False
end if


Understood? It's not so much difficult to code a simple ai.
For more understanding, simple ask our good friend google. ;)
Good luck for you!


so how do we get the computer to understand how to "see the player" or understand how to "shoot the player"? also how do i set the range and accuracy values? (sorry my education in blitz 3d doesnt go beyond 3d game programming for teens!)

Share this post


Link to post
Share on other sites
That might be a little hard as you'll need some knowledge on vectors and matrix projections... aim low n then build forward....



Share this post


Link to post
Share on other sites
Quote:
Original post by nassimamar
That might be a little hard as you'll need some knowledge on vectors and matrix projections... aim low n then build forward....


so ummmm were can i get info on those? any specific links?

Share this post


Link to post
Share on other sites
Hello,

Vectors and Matrices are usually covered in upper level high school math. I know I learned about matrices in honors algebra 2, and vectors in honors pre-calculus. I would advise you to go to your local library and look through their math section. You would look for any algebra books and see if they cover matrices and if not look in pre-calculus books, or calculus books. Also, you would look for any pre-calculus book or calculus books to see if they cover vectors. I would advise you to work out the problems in the book to make sure you understand. Luckily, vectors and matrices are very easy to pick up on. You might have to look into some physics stuff for vectors too, but I am not sure about that. After you learn it you could possibly look up articles on that stuff related to game programming by searching google.

~Carl J. Loucius

Share this post


Link to post
Share on other sites
N' If you find that the math is too dry for now, concentrate on blitz3d, as you'll learn many many things that go beyond a 3d engine (ie: state machines, game structure, game mechanics, etc.) then from the top, you can start digging to the abysses of what a game engine is all about.... Again, that is after you do ur library digging.... make that choice....

Good Luck!!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!