Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Objects
#1
Hi, I'm working on a shoot em up game and I've decided to use Curvy for enemy patterns.

I've made some progress with single enemy but I have no clue how can I make multiple objects follow a spline aligned. Can anyone give me a hint or show me the way to start ?

This is what I'm trying to do :

https://drive.google.com/file/d/0BzaUUbc...sp=sharing

 
Reply
#2
If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 
Reply
#3
(01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 

 

Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.

 
Reply
#4
Wondering if you ever figured this out?  I'm trying to do something similar and curious to know if you found a workable (and efficient) solution.  Thanks much!

(01-28-2015, 09:46 AM)LastSipahi Wrote:
(01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 

 

Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.

 
Reply
#5
Having objects, each with a SplineController attached, using a spline is the easiest and best way to go. If SplineController is too much overhead for your particular setup, you'll need to create a custom script that uses Curvy API to get spline data and move your objects accordingly. But unless you want to animate several hundred objects simultaneous I would stick to SplineController.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Placing multiple objects on multiple splines digot 5 1,575 04-26-2020, 06:20 PM
Last Post: _Aka_
  Objects Spawning in Runtime Kuxii 5 1,355 03-25-2020, 03:06 PM
Last Post: _Aka_
  Best practice for multiple splines digot 2 990 02-18-2020, 03:37 PM
Last Post: digot
  Moving multiple controllers at once Lupp_ 23 6,194 02-10-2020, 11:19 PM
Last Post: _Aka_

Forum Jump: