Page 1 of 3 123 LastLast
Results 1 to 20 of 41
  1. #1
    Banned Member p00f's Avatar
    Join Date
    May 2006
    Location
    Hawaii USA
    Posts
    1,301

    Tutorial:Path node AI for non-programmers.

    Hi all!

    Want to add life form simulation to your game?.... But you dont know anything about coding?

    Well ,here is a tutorial/example of a popular path node method, 100% code free!!.

    This is about as simple as it can possibly get, to explain the most important parts of this theory, following the path node network...

    Later you can add other things to the AI, like attacking the player, or interacting with other pawns in the game. the hardest part is getting the network set up and the pawns patrolling the path node network.

    Great method for:
    Racing games
    First person shooters
    RPG monsters and NPC's
    and you can even use this exact same method in your old-school 2d "scrollers"!

    Have fun!

    Please feel free to post your comments and critiques
    feedback will make better tutorials in the future.

    Here is the tutorial: EDIT thanks to open office every image is sized incorrectly. Right click on the image and select View image if it is blurry to you. this only seems to effect internet explorer, my firefox is rendering everythin ok.


    http://s91842597.onlinehome.us/Tutorials/AI/index.html

    I will have to fix this when I get more time. I am very very sorry about this
    Last edited by p00f; 12-Nov-06 at 14:26. Reason: Open Office screwed me again. i forgot I had to specify every aspect of every document before i saved it as HTML



  2. #2
    Member
    Join Date
    Mar 2005
    Location
    Swansea
    Posts
    76
    Hey thanks! Brilliant tutorial, pretty simple to understand too! Nice one.



  3. #3
    Member Ace Dragon's Avatar
    Join Date
    Feb 2006
    Location
    Wichita Kansas (USA)
    Posts
    28,240
    Looking at the tutorial I wonder about this, by the looks of it your node system simply does a path with 4 nodes. What if (for complex pathfinding) you use a rather large network of maybe 100 nodes or use a very complex path that requires 50 or more nodes. You would need so many logic bricks that it would be impractical.

    If i'd like to see anything it would be a pathfinding system using python with node objects and a node script that uses the object name to determine the path (this way very complex systems can be created)
    Sweet Dragon dreams, lovely Dragon kisses, gorgeous Dragon hugs. How sweet would life be to romp with Dragons, teasing you with their fire and you being in their games, perhaps they can even turn you into one as well.
    Adventures in Cycles; My official sketchbook



  4. #4
    Member Wanted Bob's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    188
    Very Cool! This is exactly the thing I was looking for (Being too lazy to learn Python and all)

    Wanted Bob



  5. #5
    I did something like this a while back, but with python. This is a very good way to start out. It's already starting to reach the limitations of the logic brick system, however. Imagine adding different actions, sounds, etc, to the A.I. I hope this is a stepping stone for people to move on to python so they see the kind of things that can be achieved.



  6. #6
    Member Mike_S's Avatar
    Join Date
    Mar 2005
    Location
    Toronto
    Posts
    3,225
    Thanks for the tutorial !

    I added a couple of keyboard sensors so that the cube can speed up or slow down, just connected them to motion actuators with +8 / -8 y forces. But the cube only changes speed as long as the key is held down. Obviously (I guess) because the always sensor resets it to 10.

    Is there a way to have the motion sensor use a variable instead of a hard coded value? I assume some python code might be necessary, that's ok with me, I haven't used the g.e. much ..yet, but would like to learn about it.

    I've programmed with python a bit in the 'main' Blender program, so I'm familiar with basic Python techniques.

    Mike



  7. #7
    Banned Member p00f's Avatar
    Join Date
    May 2006
    Location
    Hawaii USA
    Posts
    1,301

    Thanks :)

    @~J~,

    Thanks that is what I am aiming for, Simple

    @Icoxo ,
    I totally agree! scripting is much more efficient, my first serious programming project will be something like what you described thanks for the feedback!

    @Wanted Bob,
    Well, you are definitely the target audience I was making this for start with logic blocks, later move onto scripting... main thing is to have fun now, so you want to learn more hard stuff later

    @fireside,
    Yea! thanks man! yea this is just a stepping stone for the new-bie like you said... easy to add on to, and can take almost the same concept to python later to build custom AI's


    @mstram,
    Thank you
    Im not sure, I will play with it after I get off work



    Thanks to all for interacting with this thread



  8. #8
    hello,

    p00f, i tried your example file its great .
    you mentioned we could set the tracking to 3d.
    i changed all tracking to 3d and moved some of the plates up and down near the floor.
    i made a copy of the cube, and have 3 cubes now at different locations.
    now, when i start the simulation, the cubes may move around but some stuck at the nodes and, and wont move to the next one, but circle around the last node.
    maybe you have a hint here

    thx, vizzy/verblendet



  9. #9
    Banned Member p00f's Avatar
    Join Date
    May 2006
    Location
    Hawaii USA
    Posts
    1,301
    hi vizzy,

    Umm, i did this tutorial before i knew about the new physics system.

    the cube is probably getting stuck on the plane, if you turn off the collision (click the ghost button in logic brick menu) the sheets will still register a collision, but not actually collide anything in the physics world...
    it just fires off a pulse saying it has been hit, and wont block anything..

    sorry i did not see this message... I will have to see if this forum has an email notifyer...



  10. #10
    Wow! I was really looking for something exactly like this, and you gave me it!
    Thanks, buddy!
    (I've said to myself: "if I do the AI, I'll make a tutorial". Well, I don't need to do this anymore, you've done!)



  11. #11
    Member
    Join Date
    Oct 2006
    Location
    Austria
    Posts
    96
    I'm make script for all users with mypos.
    download: http://www.4shared.com/file/5826074/...pathnodeu.html



  12. #12
    Hi Pacman! Could you upload pathnodeu.blend file somewhere els... I can't download it from 4shared.com/

    So how can I make a walking about NPC with python?



  13. #13
    Where has this tutorial been hiding? I could find tons of uses for this, thanks for sharing the knowledge p00f = )



  14. #14
    I was fearing having to do a lot of work to get enemies and AI in my game, you saved me so much work; thank you!



  15. #15
    Member ecgilboy's Avatar
    Join Date
    Sep 2006
    Location
    Saipan, CNMI USA
    Posts
    634
    Thanks for this excellent tutorial poof..



  16. #16
    I finally downloaded the file from pacman with internet explorer. Try moving around the red box but no changes on the path movement.



  17. #17
    Banned Member p00f's Avatar
    Join Date
    May 2006
    Location
    Hawaii USA
    Posts
    1,301
    hi guys!

    glad you liked the tutorial



  18. #18
    Works on Opera.

    Really good tut.



  19. #19
    Banned Member p00f's Avatar
    Join Date
    May 2006
    Location
    Hawaii USA
    Posts
    1,301
    hi tarers_r_tasty,

    Glad you like it

    thanks for the Opera test too 8)



  20. #20
    Hi p00f ! I tried the tutorial ! Can I make my monster move in a more straighter path. Currently its like the monster is skating on ice. HA HA.



Page 1 of 3 123 LastLast

Similar Threads

  1. Material Nodes: Making a Planetoid ( intermediate-advanced )
    By Modron in forum Tutorials, Tips and Tricks
    Replies: 25
    Last Post: 31-Mar-15, 18:17
  2. RGB Chroma Key Node Test-Windows Build (12 AUG 06)
    By bob_holcomb in forum Blender Tests
    Replies: 189
    Last Post: 22-Jan-07, 18:35
  3. Node packs/ presets
    By Daniel8488 in forum Blender and CG Discussions
    Replies: 2
    Last Post: 15-Jul-06, 21:40
  4. Some questions on the node editor
    By methinks in forum Basics & Interface
    Replies: 0
    Last Post: 25-Feb-06, 14:27
  5. new mat. nodes...what the heck ?
    By nehpets in forum Blender and CG Discussions
    Replies: 202
    Last Post: 26-Jan-06, 13:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •