Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is the best way to make a monster travel through a maze randomly?

Asked by 8 years ago

I'm going to make a boss battle, where a worm travels through a maze perfectly (As in it doesn't run into walls or try to go through them.) I don't need a code answer, just ideas on how I would do this.

All ideas accepted! I don't want this to become the next portal question. Help always appreciated!

4 answers

Log in to vote
1
Answered by 8 years ago
  • What you would Basically do to accomplish this

First you need your boss creature correctly made so it has the correct Motor6D's and your boss creature is welded/heldtogether properly so it will be able to move around and not fall about when unanchored. Then, you need to use Pathfinding which start point would probably be the Torso of your boss and you would probably want to put random invisible parts along your maze which will become the end points for your boss creature to move to. You'll also want to make the damaging some how and if you're going to add animations, you need correct Motor6D usage along w/ a HumanoidRootPart and Animation controller inside. This is the barebones of what you'd need to do!

  • Links that may help;

Learn about Joints

Learn about Pathfinding service

Learn about MoveTo for the Humanoid

Learn about animations

Learn about Touched event, Could use for damaging

Learn about randomness, could use for a more random pathfinding

0
Thank you! this helps alot! connor12260311 383 — 8y
Ad
Log in to vote
4
Answered by 8 years ago

i would probably say use the pathfinding service. Make a script that randomly changes a value for the end of the pass wit the main part (toso ,ect.) of the creature the start of it

Log in to vote
2
Answered by 8 years ago

Since you're just looking for some insight on how this could be possible, I'd strongly suggest looking into ROBLOX's pathfinding API. You can access it as a service, and there's a bit more information about it here: http://wiki.roblox.com/index.php?title=API:Class/PathfindingService

If you need some help or want some examples, message me on my ROBLOX account and I'll try and help.

Log in to vote
1
Answered by 8 years ago

Pathfinding service. Is the most efficient way. http://wiki.roblox.com/index.php?title=Pathfinding And I'm sorry since I can't comment I just answered it this way.

0
:MoveTo() is also another built in function for humanoids. But it isnt the most efficient way to give something like a "worm" its artificial movements. legomaster38 39 — 8y

Answer this question