3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 2 [3]

Author Topic: COMPONENTIZED GAME DEVELOPMENT HAS ARRIVED!!  (Read 1923 times)

« Reply #30 on: December 12, 2013, 07:45:40 AM »
Mike, it would be good to make a component of the algorithm A, for all the bots, it will be a masterpiece!
« Reply #31 on: December 13, 2013, 11:30:07 AM »
Homing Missile Game Component testing...

http://www.youtube.com/watch?v=ruedqz_4JJY


--Mike
« Reply #32 on: December 22, 2013, 08:55:26 AM »
great! and avoid obstacles?


I apologize for Google translation
« Reply #33 on: January 10, 2014, 05:44:27 AM »
Hi Mike I have finally got time to finish this scripted Non Player Character.

It works the same as the other samples you provided in that you mark out the the path you want it to follow with skin mesh as nodes.

The difference is that the NPC always try to get as close to the player as possible and uses a Simplified Node Path Search Script. It uses a similar methods to A*Star Pathfinder. It can't be used in the same way as A* because it required more open space.

I am providing the script to anyone who can make use of it.

Attached you will find a sample demo that shows how it all works. I have left some print statements in it so you will know what it is thinking. When in use you will need to comment out these lines.

n_iron

« Last Edit: January 10, 2014, 05:48:03 AM by n_iron »
« Reply #34 on: January 10, 2014, 09:46:06 AM »
this is exactly the whole idea behind the concept... to take a generic  Game Component and enhance it...

cool...

i did notice that once the npc locks on to the player, the logic doesn't prevent it from losing lock, and it will also go through buildings...

maybe some logic so that when the player is out of range, or not in view, the npc returns to its patrolling mode...


--Mike
« Reply #35 on: January 11, 2014, 08:46:02 PM »
Hi Mike

Quote
i did notice that once the npc locks on to the player, the logic doesn't prevent it from losing lock, and it will also go through buildings...

The NPC has vision of a sort and the player can get close from behind without being seen. To improve this it would have to be linked to all RB in the scene, possible but not implemented. The field of view width and depth is all adjustable.

The player can out run the NPC and it then returns to patrol.

n_iron
« Reply #36 on: January 11, 2014, 11:13:49 PM »
Quote
The player can out run the NPC and it then returns to patrol.

yes... that's what i was wondering...


--Mike
Pages: 1 2 [3]