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 » Scripters
Home Search
 

Re: Pathfinding

Previous Thread :: Next Thread 
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
05 Sep 2016 02:46 AM
Say I want to make an NPC that constantly follows you regardless of where you are. I read on the wiki that you have to use ComputeRawPathAsync and use the position of where you start, where it ends, and the max distance of the path. So in this case, the first position would be where the NPC is and where it ends is the player, and the max distance can be infinite. Wouldn't you have to constantly check it?

Could you just make a loop to constantly check it? Or does CheckOcclusionAsync do that already? Is my whole idea of how pathfinding works wrong??

(note that I haven't actually tried pathfinding, I'm just a bit curious as to how it works. I just wanted to see if I could eventually make a game similar to Silence by Venvious. sorry, I'm a fr00b at this. ;-;)


Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
05 Sep 2016 04:06 AM
wat


Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
05 Sep 2016 01:18 PM
heeyngnahgnhhg


Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
05 Sep 2016 02:50 PM
meep


Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
05 Sep 2016 11:43 PM
this is getting as much attention as my posts for my other game XD


Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
06 Sep 2016 12:15 AM
maxdistance will always be 500, otherwise it will return an error/nil

you would need to recheck more often as the zombie got closer to the original position of the player, in order to minimize performance issues and maximize 'chaseability'


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
06 Sep 2016 12:33 AM
use Smooth and not Raw, it makes bezier curves and is more smooth

also have 1 big script controlling all AI or bind the AI to an event like Heartbeat so that there is limited server side lag
Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
06 Sep 2016 01:03 AM
oh, okay thanks! the tip about using Smooth is handy

noted, I want to start out serious game development when I have the time, most of what I've made are just little experiments


Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Sep 2016 02:39 AM
Raycast a ray to the player if you can simply walk towards them, if so do that.
If something is blocking the ray, use pathfinding.
Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
06 Sep 2016 07:47 PM
cool tip, thanks!


Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
06 Sep 2016 08:11 PM
https://www.youtube.com/watch?v=WFEvyMmwzOE
Report Abuse
FPSPwnz0r is not online. FPSPwnz0r
Joined: 27 Jun 2011
Total Posts: 2737
06 Sep 2016 10:51 PM
Cool video


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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