generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

pathfinding AI?

Previous Thread :: Next Thread 
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
16 Mar 2014 11:57 AM
I have a human and when a person clicks I want the person to go wherever the player told them to go... but if I use humanoid:MoveTo() the person could get stuck, any ideas to make the person go around hills or whatever is in the way?
Report Abuse
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
16 Mar 2014 11:58 AM
lualearners used to have this. lualearners shutdown. :l
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
16 Mar 2014 12:02 PM
You'd have to do some research on google. You might consider looking at the A* path finding algorithm
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
16 Mar 2014 12:03 PM
I shut down lualearners,

but I do create AI.
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
16 Mar 2014 12:04 PM
Actually, I shut down the lualearners group, not the website.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
16 Mar 2014 12:04 PM
Cool
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
16 Mar 2014 12:05 PM
http://wiki.roblox.com/index.php/Algorithms

These are the 2 most common methods (from what I've seen in ROBLOX):
http://wiki.roblox.com/index.php?title=A*
http://wiki.roblox.com/index.php?title=Best-first_search
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
16 Mar 2014 12:07 PM
What I use is raycasting. I make the robot choose a random direction, forward at first, and if there's a wall there, I make it spread the search out until it's done a complete circle.
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
16 Mar 2014 12:24 PM
well I guess its time for me to learn raycasting
Report Abuse
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
16 Mar 2014 12:28 PM
Raycasting and lookvector works fine, but using the other sources (A* and etc.) Is a good place to start.

Hire me! http://www.roblox.com/Forum/ShowPost.aspx?PostID=128214378
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
16 Mar 2014 12:31 PM
I looked at the wiki and dont really understand A* at all luls
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image