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: Make AI float up and down toward target?

Previous Thread :: Next Thread 
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
23 Sep 2016 07:48 PM
Using pathfinding of course, but I have no idea on how to make it go up and down. Maybe a body force inside its main part, and just move that toward the target but how would I change it and move it forward, up, and down..?
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
23 Sep 2016 07:56 PM
Within a max top and bottom Y axis.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
24 Sep 2016 12:31 AM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
24 Sep 2016 01:01 AM
b
Report Abuse
Repsej112 is not online. Repsej112
Joined: 22 Jan 2013
Total Posts: 205
24 Sep 2016 03:14 AM
You can use CFrame interpolation which I dont have any knowledge of
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
24 Sep 2016 03:53 PM
I need wiki links, and opinions on the best way. (There will also only be ONE AI unit, and it will be handled by the server so something that can loop off the server everytime the countdown changes.)
Report Abuse
tentergram is not online. tentergram
Joined: 13 Apr 2013
Total Posts: 2446
24 Sep 2016 03:59 PM
make it go up and down how? in a 90 degree slope or in something like stairs?
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
24 Sep 2016 04:54 PM
b
Report Abuse
Kyles45678 is not online. Kyles45678
Joined: 12 Dec 2012
Total Posts: 203
24 Sep 2016 05:01 PM
Rocket Propulsion

http://wiki.roblox.com/index.php?title=API:Class/RocketPropulsion
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
24 Sep 2016 06:22 PM
use any type of body mover and if you know how to make it move to the next point then you should know how to make it move upwards and downwards which the path already does
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
25 Sep 2016 01:36 PM
Also how would I make the path finding go up (directly.)
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
25 Sep 2016 01:38 PM
Pretty sure pathfinding doesn't go up directly. It it detects a path it can travel up (such as stairs) then it goes up
Report Abuse
AbstractCode is not online. AbstractCode
Joined: 26 Aug 2016
Total Posts: 654
25 Sep 2016 01:51 PM
Search up the A* algorithm then ask yourself that question.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
25 Sep 2016 08:40 PM
If I knew or understood I wouldn't be asking for help.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
25 Sep 2016 09:42 PM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
25 Sep 2016 09:59 PM
b
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
25 Sep 2016 11:09 PM
Imagine a fish that can move to get its food (plants.) It must move up and down, left and right to get to its food so it can get it.
Report Abuse
Excentic is not online. Excentic
Joined: 14 Dec 2015
Total Posts: 328
26 Sep 2016 01:43 AM
Animation?
I know it might look bad, but use the x,y,z axis (position) in your script.

Not that I know anything about scripting,
but it just might work.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
27 Sep 2016 10:28 AM
'Rocket Propulsion' I need something that is anchored and can only be moved by itself (and scripts of course.)
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
27 Sep 2016 10:36 AM
Other opinions on the BEST way to do this?
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
27 Sep 2016 10:43 AM
To specify what I'm trying to do:

Make the head of the fish go up or down and move to try and get its food.
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
27 Sep 2016 07:48 PM
The only way I could think of this would be to use pathfinding.

And determine if the target is above the fish, move it up. Vice versa if it is below
Report Abuse
iIikeyou is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
27 Sep 2016 07:50 PM
why pathfinding? are there obstacles? why would you not just move directly towards the food (sans a 'cartoonfactor,' see rocketpropulsion)
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
27 Sep 2016 07:52 PM
But then you might have something like this:

------------| ----------------|
Food | | |
----- |_____| |-----| |
| | | |---
| | | <>< -- fish
------------------| |_______

That is what you would have trouble with. Is determining how to tell the fish to left, then up, then left, then down, then left, then up, then finally left to the food.
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
27 Sep 2016 07:53 PM
Stupid forum messed up my drawing :(
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