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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Pathfinder

Previous Thread :: Next Thread 
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
25 Nov 2013 07:40 PM
I looked all over and I can't find any tutorial or anything.

If you could help me out that would be great

Odnarb will RULE - http://web.roblox.com/Forum/ShowPost.aspx?PostID=114315214
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
25 Nov 2013 07:45 PM
Lualearners has an A* pathfinding tutorial. Not sure how good it is though.
Report Abuse
PerpetualMovement is not online. PerpetualMovement
Joined: 04 Dec 2012
Total Posts: 1001
25 Nov 2013 07:46 PM
Use rays
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Nov 2013 07:47 PM
^ Inefficient
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
25 Nov 2013 07:58 PM
Region3 maybe?

probably slower though
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
25 Nov 2013 08:08 PM
A. A way to scan the entire field (Region3 would be the best to collect all of the data if randomized).

B. Create a map of the open spaces with the collected data.

C. Find the intersection points of the auxiliary lines.

D. Define the starting spot and the ending spot.

E. Make the script run each and every possible moves until the script reaches the end (GL with that)






That's the only way I can think of in 2 minutes.
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
25 Nov 2013 08:20 PM
The best way for most purposes is to feature a ton of points on the map that the AI can walk from point to point until they reach their target. They key is for them to find the smallest path possible.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
25 Nov 2013 08:22 PM
If there is a script that can do that in less than a second, I will be astonished.
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
25 Nov 2013 08:35 PM
Yeah if you have a complicated path, it might take a while for it to think.
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